(filepath: string, contents: string)
| 654 | * Output a file, creating any necessary directories. |
| 655 | */ |
| 656 | export async function outputTextFile(filepath: string, contents: string): Promise<void> { |
| 657 | await fs.mkdir(path.dirname(filepath), {recursive: true}); |
| 658 | await fs.writeFile(filepath, contents, 'utf-8'); |
| 659 | } |
| 660 | |
| 661 | /** |
| 662 | * Create an empty file (and directories leading to it), leaving it alone if already present. |
nothing calls this directly
no outgoing calls
no test coverage detected