Function readFolderPaths

  • Get all paths inside a folder path.

    Parameters

    • folderPath: string

      The path of the folder to read.

    • options: SearchOptions

      Whether to read subfolders or not.

    Returns Promise<string[]>

    An array of paths.

    const paths = readFolderPaths(['src'])
    
    const paths = readFolderPaths(['src'], { deepSearch = true })