src/filesystem/implementation.js
function check_if_node_exists(error, result) {
    if(!error && result) {
      callback(new Errors.EEXIST('path name already exists', path));
    } else if(error && !(error instanceof Errors.ENOENT)) {
      callback(error);
    } else {
      context.getObject(parentNode.data, create_node);
    }
  }
function check_if_node_exists(error, result) {
    if(!error && result) {
      callback(new Errors.EEXIST('path name already exists', path));
    } else if(error && !(error instanceof Errors.ENOENT)) {
      callback(error);
    } else {
      context.getObject(parentNode.data, create_node);
    }
  }
function check_if_node_exists ( error , result ) { if ( ! error && result ) { callback ( new Errors . EEXIST ( 'path name already exists' , path ) ) ; } else if ( error && ! ( error instanceof Errors . ENOENT ) ) { callback ( error ) ; } else { context . getObject ( parentNode . data , create_node ) ; } }
Check if the node to be created already exists
Check if the node to be created already exists