(path: string, options?: { withFileTypes?: boolean })
| 241 | } |
| 242 | |
| 243 | readdirSync(path: string, options?: { withFileTypes?: boolean }): string[] | VirtualDirentLike[] { |
| 244 | const entries = readdirImpl(this.db, path); |
| 245 | if (options?.withFileTypes === true) { |
| 246 | return entries.map((entry) => wrapDirent(entry)); |
| 247 | } |
| 248 | return entries.map((entry) => entry.name); |
| 249 | } |
| 250 | |
| 251 | mkdir(path: string, options?: MkdirOptions): Promise<string | undefined> { |
| 252 | return Promise.resolve(this.mkdirSync(path, options)); |
no test coverage detected