Skip to content

Instantly share code, notes, and snippets.

@minodisk
Created July 26, 2011 17:57
Show Gist options
  • Save minodisk/1107374 to your computer and use it in GitHub Desktop.
Save minodisk/1107374 to your computer and use it in GitHub Desktop.
stat log
> require('fs').statSync('/usr')
{ dev: 234881026,
ino: 369622,
mode: 16877,
nlink: 14,
uid: 0,
gid: 0,
rdev: 0,
size: 476,
blksize: 4096,
blocks: 0,
atime: Thu, 21 Jul 2011 20:23:35 GMT,
mtime: Wed, 08 Jun 2011 20:05:52 GMT,
ctime: Wed, 08 Jun 2011 20:05:52 GMT }
> require('fs').stat('/usr', function (er, s) { console.log(er), console.log(s); });
> null
{ dev: 234881026,
ino: 369622,
mode: 16877,
nlink: 14,
uid: 0,
gid: 0,
rdev: 0,
size: 476,
blksize: 4096,
blocks: 0,
atime: Thu, 21 Jul 2011 20:23:35 GMT,
mtime: Wed, 08 Jun 2011 20:05:52 GMT,
ctime: Wed, 08 Jun 2011 20:05:52 GMT }
require('fs').stat('/usr', function (er, s) { console.log(er), console.log(s); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment