Skip to content

Instantly share code, notes, and snippets.

@gergob gergob/fstat.js
Created Jul 26, 2013

Embed
What would you like to do?
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
You can’t perform that action at this time.