Skip to content

Commit

Permalink
fix: Handle Windows path separators (#675) @Larsluph
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsluph authored Feb 22, 2023
1 parent 141318a commit f4646e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f4646e2

Please sign in to comment.