Path.js throws away one character paths.

  • Version:
    Master version in github
  • Platform:
    Windows
  • Subsystem:

The code to parse win32 paths, throws away paths that consist of one letter or character (unless its a forward or backward slash). Line 833 in the excerpt below, returns empty strings.

node/lib/path.js

Lines 826 to 833 in d989e20

if (len === 1) {
if (isPathSeparator(code)) {
// `path` contains just a path separator, exit early to avoid
// unnecessary work
ret.root = ret.dir = path;
return ret;
}
return ret;