/etc/passwd is a unix file.  does not exist on windows

On 4/5/2012 12:54 AM, reinvent wrote:
Hi Guys
im trying to run this example from Ryan Dahl's talk: http://www.youtube.com/watch?v=F6k8lTrAE2g
im on windows7 node.js version   v0.6.13


var stat = require('fs').stat;

stat('etc/passwd', function(err, s){
    if (err) throw err;

    console.log('modified: %s' , s.mtime);

})




i get error on this line if (err) throw err;
ENOENT stat

any suggestions
thanks!



--
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

--
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