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

Function hasPath

src/utils/filePersistence/outputsScanner.ts:50–52  ·  view source on GitHub ↗
(entry: object)

Source from the content-addressed store, hash-verified

48}
49
50function hasPath(entry: object): entry is { path: string; name: string } {
51 return 'path' in entry && typeof entry.path === 'string'
52}
53
54function getEntryParentPath(entry: object, fallback: string): string {
55 if (hasParentPath(entry)) {

Callers 1

getEntryParentPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected