Clean up addSubtitles (#535)
* Fix comments from #529 * Don't unlink deselected files I still want to do that eventually, but needs to be supported in WebTorrent See https://github.com/feross/webtorrent/issues/806
This commit is contained in:
@@ -349,10 +349,6 @@ function selectFiles (torrentOrInfoHash, selections) {
|
||||
} else {
|
||||
console.log('deselecting file ' + i + ' of torrent ' + torrent.name)
|
||||
file.deselect()
|
||||
|
||||
// If we deselected a file, try to nuke it to save disk space
|
||||
var filePath = path.join(torrent.path, file.path)
|
||||
fs.unlink(filePath) // Ignore errors for now
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user