MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / writeFile

Method writeFile

common/src/system_storage.ts:17–20  ·  view source on GitHub ↗
(name: string, data: string)

Source from the content-addressed store, hash-verified

15 }
16
17 public writeFile(name: string, data: string) {
18 const targetPath = path.normalize(path.join(StorageSubsystem.DATA_PATH, name));
19 fs.writeFileSync(targetPath, data, { encoding: "utf-8" });
20 }
21
22 public readFile(name: string) {
23 const targetPath = path.normalize(path.join(StorageSubsystem.DATA_PATH, name));

Callers 7

initVersionManagerFunction · 0.45
setFrontendLayoutConfigFunction · 0.45
readCategoryConfigFunction · 0.45
overwriteMethod · 0.45
fillMissingKeysFunction · 0.45
sortLanguageFilesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected