node-filewalker
node-filewalker copied to clipboard
Filenames containing backslashes are handled incorrectly
On Linux:
mkdir testdir
touch testdir/a\\b
var filewalker = require('filewalker');
filewalker("testdir")
.on("file", function(p, s) {
console.log(p);
})
.walk();
output is a/b
instead of the expected a\b
.
Good finding.
The lines causing this issue:
https://github.com/oleics/node-filewalker/blob/588f5b5/lib/filewalker.js#L39-L41