node-filewalker icon indicating copy to clipboard operation
node-filewalker copied to clipboard

Filenames containing backslashes are handled incorrectly

Open asquared opened this issue 8 years ago • 1 comments

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.

asquared avatar Jun 13 '16 21:06 asquared

Good finding.

The lines causing this issue:

https://github.com/oleics/node-filewalker/blob/588f5b5/lib/filewalker.js#L39-L41

oleics avatar Jun 14 '16 10:06 oleics