MCPcopy Create free account
hub / github.com/6174/comflowyspace / getStableDiffusionDir

Function getStableDiffusionDir

apps/node/src/modules/utils/get-appdata-dir.ts:34–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34export function getStableDiffusionDir(): string {
35 const configStr = appConfigManager.get(CONFIG_KEYS.appSetupConfig);
36 let stableDiffusionDir = "";
37 if (configStr) {
38 try {
39 const config = JSON.parse(configStr);
40 stableDiffusionDir = config.stableDiffusionDir;
41 } catch(err: any) {
42 logger.error("parse config error" + err.message + ":" + err.stack);
43 }
44 }
45 return stableDiffusionDir;
46}

Callers 1

cloneComfyUIFunction · 0.90

Calls 2

parseMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected