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

Method readFile

common/src/system_storage.ts:22–25  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

20 }
21
22 public readFile(name: string) {
23 const targetPath = path.normalize(path.join(StorageSubsystem.DATA_PATH, name));
24 return fs.readFileSync(targetPath, { encoding: "utf-8" });
25 }
26
27 public readDir(dirName: string) {
28 const targetPath = path.normalize(path.join(StorageSubsystem.DATA_PATH, dirName));

Callers 9

initVersionManagerFunction · 0.45
getAppMarketListFunction · 0.45
getFrontendLayoutConfigFunction · 0.45
readCategoryConfigFunction · 0.45
readAllMethod · 0.45
fillMissingKeysFunction · 0.45
sortLanguageFilesFunction · 0.45
readOneFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected