(filePath: string)
| 17 | } |
| 18 | |
| 19 | async function ensureFile(filePath: string): Promise<void> { |
| 20 | try { |
| 21 | await fs.access(filePath, fs.constants.W_OK) |
| 22 | } catch { |
| 23 | await fs.writeFile(filePath, "") |
| 24 | await fs.chmod(filePath, 0o600) |
| 25 | } |
| 26 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…