bin/support/file_system.js
/**
   * a string of the path for the parent folder
   *
   * @param {String} folder a folder path
   */
a string of the path for the parent folder
@param {String} folder a folder path
a string of the path for the parent folder @param { String } folder a folder path
static parentFolder (folder) {
    const sep = path.sep
    const endIndex = folder.length - 1
    folder = folder.replace(`${sep}${sep}`, '/')
    folder = (folder[endIndex] === sep) ? folder.slice(0, endIndex) : folder
    return _.initial(folder.split(sep)).join(sep)
  }
static parentFolder ( folder ) { const sep = path . sep const endIndex = folder . length - 1 folder = folder . replace ( ` ${ sep } ${ sep } ` , '/' ) folder = ( folder [ endIndex ] === sep ) ? folder . slice ( 0 , endIndex ) : folder return _ . initial ( folder . split ( sep ) ) . join ( sep ) }
a string of the path for the parent folder
 @param {String} folder a folder path
a string of the path for the parent folder @param { String } folder a folder path