(pattern: string)
| 447 | } |
| 448 | |
| 449 | private async getFilePaths(pattern: string): Promise<string[]> { |
| 450 | const paths = await this.glob(pattern); |
| 451 | const files: string[] = []; |
| 452 | for (const path of paths) { |
| 453 | const stat = await this.lstat(path); |
| 454 | if (stat?.type === "file") { |
| 455 | files.push(path); |
| 456 | } |
| 457 | } |
| 458 | return files; |
| 459 | } |
| 460 | |
| 461 | private async deleteFile(path: string): Promise<void> { |
| 462 | await this.fs.rm(path, { force: true }); |
no test coverage detected