Resolves issue #112, though isBlockDevice(), isCharacterDevice(), isFIFO(), and isSocket() currently lack constants, hence return false.

This commit is contained in:
kwkofler 2014-02-11 17:32:14 -05:00
parent 7d6bd98a31
commit 1dc325556a
1 changed files with 28 additions and 0 deletions

View File

@ -126,6 +126,34 @@ define(function(require) {
this.mtime = fileNode.mtime;
this.ctime = fileNode.ctime;
this.type = fileNode.mode;
function isFile() {
return (this.type === constants.MODE_FILE);
}
function isDirectory() {
return (this.type === constants.MODE_DIRECTORY);
}
function isBlockDevice() {
return false;
}
function isCharacterDevice() {
return false;
}
function isSymbolicLink() {
return (this.type === constants.MODE_SYMBOLIC_LINK);
}
function isFIFO() {
return false;
}
function isSocket() {
return false;
}
}
/*