node-file-utils icon indicating copy to clipboard operation
node-file-utils copied to clipboard

Fixes for windows paths

Open KrekkieD opened this issue 10 years ago • 0 comments

Using an absolute windows path (i.e. d:\test\test) it would fail silently. Checks on path.sep will not work if a unix-based path is given on a windows environment. Made changes accordingly and updated tests accordingly.

It seems it should be possible and easier to make more use of the node path class, but not sure why that was not done so left that alone.

Tests pass on both windows and unix (mac).

Oh, also added option to run tests using npm run test without having mocha on command line.

KrekkieD avatar Jul 22 '15 11:07 KrekkieD