- getFiles<Options>(folder, options?): Options["async"] extends true
? Promise<Options["stat"] extends true
? fs.Dirent[]
: string[]>
: Options["stat"] extends true
? fs.Dirent[]
: string[] Type Parameters
- Options extends {
async?: boolean;
recursive?: boolean;
stat?: boolean;
}
Parameters
- folder: string
Optional
options: Options
Returns Options["async"] extends true
? Promise<Options["stat"] extends true
? fs.Dirent[]
: string[]>
: Options["stat"] extends true
? fs.Dirent[]
: string[]
Get Files from a folder