(directory: string, filenames: string[])
| 26 | } |
| 27 | |
| 28 | export async function someFileExists(directory: string, filenames: string[]): Promise<boolean> { |
| 29 | for (let index = 0; index < filenames.length; index++) { |
| 30 | const filename = filenames[index]; |
| 31 | if (!filename) continue; |
| 32 | |
| 33 | const path = pathModule.join(directory, filename); |
| 34 | if (await pathExists(path)) { |
| 35 | return true; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | return false; |
| 40 | } |
| 41 | |
| 42 | export async function removeFile(path: string) { |
| 43 | await fsModule.unlink(path); |
nothing calls this directly
no test coverage detected
searching dependent graphs…