MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setFileContentAtPath

Method setFileContentAtPath

compiler/companion/src/project/Project.ts:88–90  ·  view source on GitHub ↗
(path: string, content: string)

Source from the content-addressed store, hash-verified

86 }
87
88 setFileContentAtPath(path: string, content: string): void {
89 this.setFileContentAtResolvedPath(this.resolvePath(path), content);
90 }
91
92 setFileFromDiskAtPath(path: string, absoluteDiskPath: string): void {
93 this.setFileFromDiskAtResolvedPath(this.resolvePath(path), absoluteDiskPath);

Callers 2

createSourceFileMethod · 0.95
Project.spec.tsFile · 0.80

Calls 2

resolvePathMethod · 0.95

Tested by

no test coverage detected