joyent/node — Issue #2153: Stat failes with ENOENT on UNC paths containing spaces
Author: isaacs
Created: 2011-11-20 06:01:40+00:00
State: open

Example:

```
C:\Documents and Settings\Administrator\test>node
> process.cwd()
'C:\\Documents and Settings\\Administrator\\test'
> require("fs").statSync(process.cwd())
{ dev: 2,
ino: 0,
mode: 16895,
nlink: 1,
uid: 0,
gid: 0,
rdev: 2,
size: 0,
atime: Sun, 20 Nov 2011 05:54:48 GMT,
mtime: Sun, 20 Nov 2011 05:54:48 GMT,
ctime: Wed, 09 Nov 2011 00:30:10 GMT }
> require("fs").statSync("\\\\?\\" + process.cwd())
Error: ENOENT, no such file or directory '\\?\C:\Documents and Settings\Administ
rator\test'
at Object.statSync (fs.js:408:18)
at repl:1:16
at REPLServer.eval (repl.js:80:21)
at Interface. (repl.js:182:12)
at Interface.emit (events.js:67:17)
at Interface._onLine (readline.js:162:10)
at Interface._line (readline.js:426:8)
at Interface._ttyWrite (readline.js:603:14)
at ReadStream. (readline.js:82:12)
at ReadStream.emit (events.js:88:20)
```