Skip to content

Instantly share code, notes, and snippets.

@piscisaureus
Created May 8, 2012 23:31
Show Gist options
  • Save piscisaureus/2640399 to your computer and use it in GitHub Desktop.
Save piscisaureus/2640399 to your computer and use it in GitHub Desktop.
bert@piscisaureus-mint ~ $ echo "bla bla bla" > file
bert@piscisaureus-mint ~ $ ln -s file symlink
bert@piscisaureus-mint ~ $ chmod 007 symlink
bert@piscisaureus-mint ~ $ node -p -e "require('fs').lstatSync('symlink')"
{ dev: 2049,
ino: 393529,
mode: 41471,
nlink: 1,
uid: 1000,
gid: 1000,
rdev: 0,
size: 4,
blksize: 4096,
blocks: 0,
atime: Tue, 08 May 2012 23:29:11 GMT,
mtime: Tue, 08 May 2012 23:28:47 GMT,
ctime: Tue, 08 May 2012 23:28:47 GMT }
bert@piscisaureus-mint ~ $ node -p -e "require('fs').statSync('symlink')"
{ dev: 2049,
ino: 393530,
mode: 32775,
nlink: 1,
uid: 1000,
gid: 1000,
rdev: 0,
size: 12,
blksize: 4096,
blocks: 8,
atime: Tue, 08 May 2012 23:28:11 GMT,
mtime: Tue, 08 May 2012 23:28:11 GMT,
ctime: Tue, 08 May 2012 23:30:00 GMT }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment