(patterns, options)
| 9 | type GlobFn = (patterns: string | string[], options?: { cwd?: string; expandDirectories?: boolean }) => string[]; |
| 10 | |
| 11 | let globSync: GlobFn = (patterns, options) => { |
| 12 | const files = nodeGlobSync(patterns, { ...options, withFileTypes: true }); |
| 13 | return files.filter(f => f.isFile()).map(f => join(f.parentPath, f.name)); |
| 14 | }; |
| 15 | |
| 16 | export interface FsUtils { |
| 17 | init(): Promise<void>; |
no test coverage detected