s/type/mode/
This commit is contained in:
parent
4623b568fb
commit
2eae45f402
|
@ -607,7 +607,7 @@ function open_file(context, path, flags, callback) {
|
||||||
function read_directory_data(error, result) {
|
function read_directory_data(error, result) {
|
||||||
if(error) {
|
if(error) {
|
||||||
callback(error);
|
callback(error);
|
||||||
} else if(result.type !== MODE_DIRECTORY) {
|
} else if(result.mode !== MODE_DIRECTORY) {
|
||||||
callback(new Errors.ENOENT());
|
callback(new Errors.ENOENT());
|
||||||
} else {
|
} else {
|
||||||
directoryNode = result;
|
directoryNode = result;
|
||||||
|
|
Loading…
Reference in New Issue