s/type/mode/

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2014-07-16 16:54:02 -04:00
parent 4623b568fb
commit 2eae45f402
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ function open_file(context, path, flags, callback) {
function read_directory_data(error, result) {
if(error) {
callback(error);
} else if(result.type !== MODE_DIRECTORY) {
} else if(result.mode !== MODE_DIRECTORY) {
callback(new Errors.ENOENT());
} else {
directoryNode = result;