(filepath: string)
| 107 | } |
| 108 | |
| 109 | async readProtectedFile(filepath: string) { |
| 110 | assertNotTouchingFiles(filepath, 'read'); |
| 111 | return (await run('sudo', ['cat', filepath])).toString().trim(); |
| 112 | } |
| 113 | |
| 114 | async writeProtectedFile(filepath: string, contents: string) { |
| 115 | assertNotTouchingFiles(filepath, 'write'); |
nothing calls this directly
no test coverage detected