(fileName: string | undefined | Promise<string | undefined>)
| 10 | // eslint-disable-next-line @typescript-eslint/naming-convention |
| 11 | export class asserts { |
| 12 | static async isFile(fileName: string | undefined | Promise<string | undefined>): Promise<string> { |
| 13 | return await filepath.isFile(fileName) || fail(new Error(`File ${fileName} is not a file`)); |
| 14 | } |
| 15 | |
| 16 | static async isExecutable(filename: string | undefined | Promise<string | undefined>): Promise<string> { |
| 17 | const { fullPath, isFile, isExecutable } = await filepath.info(filename) || fail(new Error(`Path ${filename} does not exist`)); |
no outgoing calls
no test coverage detected