Skip to content

Instantly share code, notes, and snippets.

@gergob
Created July 26, 2013 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gergob/6092299 to your computer and use it in GitHub Desktop.
Save gergob/6092299 to your computer and use it in GitHub Desktop.
contains the node.js fstat methods
//
// Method names taken from: http://nodejs.org/api/fs.html#fs_class_fs_stats
//
//stats is the return value if fs.statsync(PATH_TO_FILE) method
stats.isFile();
stats.isDirectory();
stats.isBlockDevice();
stats.isCharacterDevice();
stats.isSymbolicLink(); //(only valid with fs.lstat())
stats.isFIFO();
stats.isSocket();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment