MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / getName

Function getName

cli/src/cli/node.ts:12–15  ·  view source on GitHub ↗
(node: NodeEntity)

Source from the content-addressed store, hash-verified

10}
11
12export function getName(node: NodeEntity): string {
13 const name = node.name.ok ? node.name.value : '';
14 return name.length > 0 ? name : node.uid;
15}
16
17export function getClaimedSize(node: NodeEntity): number | undefined {
18 return node.activeRevision?.claimedSize;

Callers 11

actionMethod · 0.90
enqueueRemotePathsMethod · 0.90
printNodeHumanMethod · 0.90
getTrashedNodeMethod · 0.90
getNodeByNameMethod · 0.90
getPhotoByNameMethod · 0.90
getAlbumByNameMethod · 0.90
getNodeByNameMethod · 0.90
findNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected