Created
July 26, 2013 21:17
-
-
Save gergob/6092299 to your computer and use it in GitHub Desktop.
contains the node.js fstat methods
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
// | |
// 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