MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / readFileSync

Function readFileSync

src/back/ConfigFile.ts:15–17  ·  view source on GitHub ↗
(filePath: string, onError?: (error: string) => void)

Source from the content-addressed store, hash-verified

13 }
14
15 export function readFileSync(filePath: string, onError?: (error: string) => void): AppConfigData {
16 return parse(readJsonFileSync(filePath), onError);
17 }
18
19 export async function readOrCreateFile(filePath: string, onError?: (error: string) => void): Promise<AppConfigData> {
20 let error: Error | undefined;

Callers 1

readOrCreateFileSyncFunction · 0.70

Calls 2

readJsonFileSyncFunction · 0.90
parseFunction · 0.70

Tested by

no test coverage detected