MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / writeProjectFile

Method writeProjectFile

src/main/base/FileSystem.ts:68–77  ·  view source on GitHub ↗
(projectPath: string, filePath: string, content: string, log = true)

Source from the content-addressed store, hash-verified

66 }
67
68 writeProjectFile(projectPath: string, filePath: string, content: string, log = true): FileSystem {
69 const projectFilePath = path.join(projectPath, filePath),
70 previousFileBasePath = BackgroundInternalFiles.getPreviousGeneratedFileBasePath(filePath),
71 previousGeneratedFilePath = path.join(projectPath, previousFileBasePath)
72
73 this.writeFile(projectFilePath, content)
74 this.writeFile(previousGeneratedFilePath, content)
75
76 return this
77 }
78
79 writeConflictsFile(filePath: string, conflicts: any): FileSystem {
80 return this.writeJsonFile(filePath, { conflicts })

Callers 8

updateLatestMigrationMethod · 0.80
generateMigrationMethod · 0.80
writeFileMethod · 0.80
writeGeneratedFileMethod · 0.80
HandleIpcMessagesFunction · 0.80
writeProjectFileFunction · 0.80

Calls 3

writeFileMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected