src/utils.js
async function fileExists(f) {
  debug(`fileExists called with: ${JSON.stringify(arguments)}`);
  try {
    await fs.statAsync(f);
    return f;
  } catch (e) {
    throw e;
  }
}
async function fileExists(f) {
  debug(`fileExists called with: ${JSON.stringify(arguments)}`);
  try {
    await fs.statAsync(f);
    return f;
  } catch (e) {
    throw e;
  }
}
async function fileExists ( f ) { debug ( ` ${ JSON . stringify ( arguments ) } ` ) ; try { await fs . statAsync ( f ) ; return f ; } catch ( e ) { throw e ; } }
return filename if exists, else throw
return filename if exists else throw