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

Method readProtectedFile

src/platforms/darwin.ts:109–112  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assertNotTouchingFilesFunction · 0.90
runFunction · 0.90

Tested by

no test coverage detected