mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-18 08:12:10 +03:00
fix: Handle Windows path separators (#675) @Larsluph
This commit is contained in:
parent
141318affc
commit
f4646e2e66
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ export function treeify(paths) {
|
|||
const level = { result }
|
||||
|
||||
paths.forEach(path => {
|
||||
path.name.split('/').reduce((r, name) => {
|
||||
path.name.split('\\').join('/').split('/').reduce((r, name) => {
|
||||
if (!r[name]) {
|
||||
r[name] = { result: [] }
|
||||
r.result.push(createFile(path, name, r[name].result))
|
||||
|
|
Loading…
Add table
Reference in a new issue