Skip to content

Commit

Permalink
🐛 Fixed oblique path errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Powerm1nt committed Oct 27, 2023
1 parent 826bd5f commit bddd848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function listFilesRecursively(directory) {
const fullPath = path.join(element).replace(/\\/g, '/');
const stats = fs.statSync(fullPath);
if (stats.isDirectory()) {
fileList = fileList.concat(listFilesRecursively(fs.readdirSync(fullPath).map(file => (path.join(fullPath, file)).replace(/\\/g, '/')));
fileList = fileList.concat(listFilesRecursively(fs.readdirSync(fullPath).map(file => (path.join(fullPath, file)).replace(/\\/g, '/'))))
} else if (stats.isFile()) {
fileList.push(fullPath);
}
Expand Down

0 comments on commit bddd848

Please sign in to comment.