MCPcopy Create free account
hub / github.com/davewasmer/devcert / readProtectedFile

Method readProtectedFile

src/platforms/linux.ts:101–104  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

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');

Callers

nothing calls this directly

Calls 2

assertNotTouchingFilesFunction · 0.90
runFunction · 0.90

Tested by

no test coverage detected