It wont work on Windows I'm afraid since /etc/passwd is a Linux file
not Windows. Windows does not have an equivalent because it has a
secure data store for id's and passwords.

Actually, I think that the example you've given would be wrong on
Linux as well since it should be /etc/passwd (e.g. have a leading /).

Not sure if this is your typo or his and I HATE(!) this constant
stream of time-wasting videos (sorry `node rant-off.js`). So I can't
be bothered to wade through the video to find out.

On Apr 5, 5:54 am, reinvent <[email protected]> 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

Reply via email to