MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / realpathOrResolve

Function realpathOrResolve

apps/desktop/src/main/vault.ts:2029–2035  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

2027}
2028
2029async function realpathOrResolve(p: string): Promise<string> {
2030 try {
2031 return await fs.realpath(p)
2032 } catch {
2033 return path.resolve(p)
2034 }
2035}
2036
2037// Decide whether a readdir entry is a directory the vault walk should
2038// descend into, returning its resolved real path (for cycle tracking) or

Callers 4

listFoldersFunction · 0.85
listNotesFunction · 0.85
listAssetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected