(filepath: string)
| 99 | } |
| 100 | |
| 101 | async readProtectedFile(filepath: string) { |
| 102 | assertNotTouchingFiles(filepath, 'read'); |
| 103 | return (await run('sudo', ['cat', filepath])).toString().trim(); |
| 104 | } |
| 105 | |
| 106 | async writeProtectedFile(filepath: string, contents: string) { |
| 107 | assertNotTouchingFiles(filepath, 'write'); |
nothing calls this directly
no test coverage detected