MCPcopy Create free account
hub / github.com/Noumena-Network/code / getReadableCronFilePath

Function getReadableCronFilePath

src/utils/cronTasks.ts:91–101  ·  view source on GitHub ↗
(dir?: string)

Source from the content-addressed store, hash-verified

89}
90
91function getReadableCronFilePath(dir?: string): string {
92 const canonicalPath = getCronFilePath(dir)
93 if (existsSync(canonicalPath)) {
94 return canonicalPath
95 }
96 const legacyPath = getLegacyCronFilePath(dir)
97 if (existsSync(legacyPath)) {
98 return legacyPath
99 }
100 return canonicalPath
101}
102
103/**
104 * Read and parse scheduled_tasks.json. Returns an empty task list if the file

Callers 2

readCronTasksFunction · 0.85
hasCronTasksSyncFunction · 0.85

Calls 3

existsSyncFunction · 0.90
getCronFilePathFunction · 0.85
getLegacyCronFilePathFunction · 0.85

Tested by

no test coverage detected