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

Function assertNotTouchingFiles

src/platforms/shared.ts:132–136  ·  view source on GitHub ↗
(filepath: string, operation: string)

Source from the content-addressed store, hash-verified

130}
131
132export function assertNotTouchingFiles(filepath: string, operation: string): void {
133 if (!filepath.startsWith(configDir) && !filepath.startsWith(getLegacyConfigDir())) {
134 throw new Error(`Devcert cannot ${ operation } ${ filepath }; it is outside known devcert config directories!`);
135 }
136}

Callers 9

deleteProtectedFilesMethod · 0.90
readProtectedFileMethod · 0.90
writeProtectedFileMethod · 0.90
deleteProtectedFilesMethod · 0.90
readProtectedFileMethod · 0.90
writeProtectedFileMethod · 0.90
deleteProtectedFilesMethod · 0.90
readProtectedFileMethod · 0.90
writeProtectedFileMethod · 0.90

Calls 1

getLegacyConfigDirFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…