Fix Delete Data on Windows. Fixes #935
This commit is contained in:
parent
ad1162c7de
commit
f4b2e78e72
1 changed files with 2 additions and 1 deletions
|
|
@ -53,5 +53,6 @@ function getByKey (state, torrentKey) {
|
|||
function getFileOrFolder (torrentSummary) {
|
||||
const ts = torrentSummary
|
||||
if (!ts.path || !ts.files || ts.files.length === 0) return null
|
||||
return path.join(ts.path, ts.files[0].path.split('/')[0])
|
||||
const dirname = ts.files[0].path.split(path.sep)[0]
|
||||
return path.join(ts.path, dirname)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue