lib/mem-fs-utils.js
function (storeOrEditor, path) {
    debug('Checking if ' + path + ' exists in the in-memory store.');
    var retv = false;
    this.processInMemoryStore(storeOrEditor, file => {
      debug('Evaluating ' + file.path + ' in state ' + file.state + ' with content length ' + (file && file.contents ? file.contents.length : 'unknown'));
      if (file.path.indexOf(path) === 0 && file.contents !== null && file.state !== 'deleted') {
        debug('FOUND');
        retv = true;
      }
    });
    debug('RESULT ' + retv);
    return retv;
  }
function (storeOrEditor, path) {
    debug('Checking if ' + path + ' exists in the in-memory store.');
    var retv = false;
    this.processInMemoryStore(storeOrEditor, file => {
      debug('Evaluating ' + file.path + ' in state ' + file.state + ' with content length ' + (file && file.contents ? file.contents.length : 'unknown'));
      if (file.path.indexOf(path) === 0 && file.contents !== null && file.state !== 'deleted') {
        debug('FOUND');
        retv = true;
      }
    });
    debug('RESULT ' + retv);
    return retv;
  }
function ( storeOrEditor , path ) { debug ( 'Checking if ' + path + ' exists in the in-memory store.' ) ; var retv = false ; this . processInMemoryStore ( storeOrEditor , file => { debug ( 'Evaluating ' + file . path + ' in state ' + file . state + ' with content length ' + ( file && file . contents ? file . contents . length : 'unknown' ) ) ; if ( file . path . indexOf ( path ) === 0 && file . contents !== null && file . state !== 'deleted' ) { debug ( 'FOUND' ) ; retv = true ; } } ) ; debug ( 'RESULT ' + retv ) ; return retv ; }
Check if a path exists in the provided memfs Store.

As memfs only stores files (and not paths) we simply make sure we find at least one valid file
with the provided path as a prefix (or complete match). I'm not aware of

@param {!Store|!EditionInterface} storeOrEditor
@param {string} file path or folder path
Check if a path exists in the provided memfs Store .