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

Function getEntryParentPath

src/utils/filePersistence/outputsScanner.ts:54–62  ·  view source on GitHub ↗
(entry: object, fallback: string)

Source from the content-addressed store, hash-verified

52}
53
54function getEntryParentPath(entry: object, fallback: string): string {
55 if (hasParentPath(entry)) {
56 return entry.parentPath
57 }
58 if (hasPath(entry)) {
59 return entry.path
60 }
61 return fallback
62}
63
64/**
65 * Find files that have been modified since the turn started.

Callers 1

findModifiedFilesFunction · 0.85

Calls 2

hasParentPathFunction · 0.85
hasPathFunction · 0.85

Tested by

no test coverage detected