On Fri, Mar 16, 2012 at 11:26 AM, Brandon Benvie
<[email protected]> wrote:
> Seriously, kind of an itch of mine. Windows understands
> '/' natively, requiring no translation, The extend of the issue is that
> Windows roots to a drive or whatever,so /whatever isn't valid but
> c:/whatever  is.

/whatever is valid as long as it is a dir/file on the current drive. /
roots to the current drive.

Type
f:
in the console to change the current drive. Now / roots to drive f:

fs.readFile('/whatever', ...)

works as long as there is such a file and the node-process is on the
right drive. process.cwd() returns the path including the current
drive letter.

And again, I would really like it if process.cwd() and all other
path-related-functions would return paths with slash / as its
directory separator even on windows.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to