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

Function getComfyUIDir

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

Source from the content-addressed store, hash-verified

18
19export const DEFAULT_COMFYUI_PATH = path.join(getAppDataDir(), 'ComfyUI');
20export function getComfyUIDir(): string {
21 const configStr = appConfigManager.get(CONFIG_KEYS.appSetupConfig);
22 let comfyUIDir = path.join(getAppDataDir(), 'ComfyUI');
23 if (configStr) {
24 try {
25 const config = JSON.parse(configStr);
26 comfyUIDir = config.comfyUIDir;
27 } catch(err: any) {
28 logger.error("parse config error" + err.message + ":" + err.stack);
29 }
30 }
31 return comfyUIDir;
32}
33
34export function getStableDiffusionDir(): string {
35 const configStr = appConfigManager.get(CONFIG_KEYS.appSetupConfig);

Callers 14

startAppServerFunction · 0.90
shell-example.tsFile · 0.90
startFunction · 0.90
startTerminalMethod · 0.90
#getComfyUIRunCommandMethod · 0.90
updateComfyUIMethod · 0.90
checkComfyUIVersionFunction · 0.90
checkIfInstalledComfyUIFunction · 0.90
cloneComfyUIFunction · 0.90
getExtensionDirFunction · 0.90
getWebExtensionDirFunction · 0.90
getFolderNamesAndPathsFunction · 0.90

Calls 3

getAppDataDirFunction · 0.70
parseMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected