Add node.type test for read_directory_data - causes new test failures
This commit is contained in:
parent
2992f7417b
commit
4623b568fb
|
@ -607,6 +607,8 @@ function open_file(context, path, flags, callback) {
|
|||
function read_directory_data(error, result) {
|
||||
if(error) {
|
||||
callback(error);
|
||||
} else if(result.type !== MODE_DIRECTORY) {
|
||||
callback(new Errors.ENOENT());
|
||||
} else {
|
||||
directoryNode = result;
|
||||
context.get(directoryNode.data, check_if_file_exists);
|
||||
|
|
Loading…
Reference in New Issue