src/filesystem/implementation.js
function create_node_in_parent(error, parentDirectoryNode) {
    if(error) {
      callback(error);
    } else if(parentDirectoryNode.type !== NODE_TYPE_DIRECTORY) {
      callback(new Errors.ENOTDIR('a component of the path prefix is not a directory', path));
    } else {
      parentNode = parentDirectoryNode;
      find_node(context, path, check_if_node_exists);
    }
  }
function create_node_in_parent(error, parentDirectoryNode) {
    if(error) {
      callback(error);
    } else if(parentDirectoryNode.type !== NODE_TYPE_DIRECTORY) {
      callback(new Errors.ENOTDIR('a component of the path prefix is not a directory', path));
    } else {
      parentNode = parentDirectoryNode;
      find_node(context, path, check_if_node_exists);
    }
  }
function create_node_in_parent ( error , parentDirectoryNode ) { if ( error ) { callback ( error ) ; } else if ( parentDirectoryNode . type !== NODE_TYPE_DIRECTORY ) { callback ( new Errors . ENOTDIR ( 'a component of the path prefix is not a directory' , path ) ) ; } else { parentNode = parentDirectoryNode ; find_node ( context , path , check_if_node_exists ) ; } }
Check if the parent node exists
Check if the parent node exists