Created
July 26, 2011 17:57
-
-
Save minodisk/1107374 to your computer and use it in GitHub Desktop.
stat log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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