Skip to content

Commit ba5d15f

Browse files
authored
added check for windows filepath
1 parent f654ceb commit ba5d15f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,10 @@ const getAllFiles = function (dirPath, basePath, arrayOfFiles) {
9999
}
100100
})
101101

102+
if (path.sep == "\\")
103+
{
104+
arrayOfFiles = arrayOfFiles.map(file => file.replaceAll("\\", "/"))
105+
}
106+
102107
return arrayOfFiles
103108
}

0 commit comments

Comments
 (0)