src/store.js
// this method checks if a folder for a give login ID already exists
this method checks if a folder for a give login ID already exists
this method checks if a folder for a give login ID already exists
async loginExists(name) {
    if (debug_level) log.info(`loginExists: ${name}`);
    if (!name) {
      log.error(`Error (loginExists): Invalid request, ${name}`)
      return false;
    }
    let newPath = path.join(this.data, 'logins', name);
    let folder = await io.folderExists(newPath);
    let file = await io.fileExists(this.data, 'logins');
    return folder || file;
  }
async loginExists ( name ) { if ( debug_level ) log . info ( ` ${ name } ` ) ; if ( ! name ) { log . error ( ` ${ name } ` ) return false ; } let newPath = path . join ( this . data , 'logins' , name ) ; let folder = await io . folderExists ( newPath ) ; let file = await io . fileExists ( this . data , 'logins' ) ; return folder || file ; }
this method checks if a folder for a give login ID already exists
this method checks if a folder for a give login ID already exists