async listAllFilesOnAPath(path, options = { onlyPaths: false }) {
    path = normalizePath(path)
    const level = (path.match(new RegExp(PATH_SEPARATOR, 'g')) || []).length
    const allFiles = await this.listAllFiles(options)
    if (options.onlyPaths) {
      let files = allFiles.filter(file => file.startsWith(path))
      files = files.filter(file => {
        const fileLevel = (file.match(new RegExp(PATH_SEPARATOR, 'g')) || []).length
        return (level + 1) === fileLevel
      })
      return files
    } else {
      let files = allFiles.filter(file => file.path.startsWith(path))
      files = files.filter(file => {
        const pathLevel = (file.path.match(new RegExp(PATH_SEPARATOR, 'g')) || []).length
        return (level + 1) === pathLevel
      })
      return files
    }
  }
/**
   * Return all the files stored on a subdir
   * @param {object} options
   * @param {object} [options.onlyPaths] - Only retrives the paths
   * @return {array} A sorted array of File or a sorted array of strings with the paths if onlyPaths is true
   */
Return all the files stored on a subdir
@param {object} options
@param {object} [options.onlyPaths] - Only retrives the paths
@return {array} A sorted array of File or a sorted array of strings with the paths if onlyPaths is true
Return all the files stored on a subdir @param { object } options @param { object } [ options . onlyPaths ] - Only retrives the paths @return { array } A sorted array of File or a sorted array of strings with the paths if onlyPaths is true
async listAllFilesOnAPath(path, options = { onlyPaths: false }) {
    path = normalizePath(path)
    const level = (path.match(new RegExp(PATH_SEPARATOR, 'g')) || []).length
    const allFiles = await this.listAllFiles(options)
    if (options.onlyPaths) {
      let files = allFiles.filter(file => file.startsWith(path))
      files = files.filter(file => {
        const fileLevel = (file.match(new RegExp(PATH_SEPARATOR, 'g')) || []).length
        return (level + 1) === fileLevel
      })
      return files
    } else {
      let files = allFiles.filter(file => file.path.startsWith(path))
      files = files.filter(file => {
        const pathLevel = (file.path.match(new RegExp(PATH_SEPARATOR, 'g')) || []).length
        return (level + 1) === pathLevel
      })
      return files
    }
  }
async listAllFilesOnAPath ( path , options = { onlyPaths : false } ) { path = normalizePath ( path ) const level = ( path . match ( new RegExp ( PATH_SEPARATOR , 'g' ) ) || [ ] ) . length const allFiles = await this . listAllFiles ( options ) if ( options . onlyPaths ) { let files = allFiles . filter ( file => file . startsWith ( path ) ) files = files . filter ( file => { const fileLevel = ( file . match ( new RegExp ( PATH_SEPARATOR , 'g' ) ) || [ ] ) . length return ( level + 1 ) === fileLevel } ) return files } else { let files = allFiles . filter ( file => file . path . startsWith ( path ) ) files = files . filter ( file => { const pathLevel = ( file . path . match ( new RegExp ( PATH_SEPARATOR , 'g' ) ) || [ ] ) . length return ( level + 1 ) === pathLevel } ) return files } }
Return all the files stored on a subdir
 @param {object} options
 @param {object} [options.onlyPaths] - Only retrives the paths
 @return {array} A sorted array of File or a sorted array of strings with the paths if onlyPaths is true
Return all the files stored on a subdir @param { object } options @param { object } [ options . onlyPaths ] - Only retrives the paths @return { array } A sorted array of File or a sorted array of strings with the paths if onlyPaths is true