Ensure that only files belonging to torrent are deleted

This commit is contained in:
John Furrow
2017-06-07 21:52:54 -07:00
parent a0e6621873
commit 30a2448509
9 changed files with 214 additions and 103 deletions

View File

@@ -260,14 +260,6 @@ class ClientRequest {
});
}
removeTorrents(options) {
let hashes = this.getEnsuredArray(options.hashes);
hashes.forEach((hash) => {
this.requests.push(this.getMethodCall('d.erase', [hash]));
});
}
setDownloadPath(options) {
let hashes = this.getEnsuredArray(options.hashes);