MCPcopy Index your code
hub / github.com/CapSoftware/Cap / getDriveFileName

Function getDriveFileName

packages/web-backend/src/Storage/GoogleDrive.ts:462–467  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

460 });
461
462const getDriveFileName = (key: string) => {
463 const parts = key.split("/").filter(Boolean);
464 if (parts[2] === "segments") return parts.slice(3).join("__") || "file";
465 if (parts.length > 2) return parts.slice(2).join("__");
466 return parts.at(-1) ?? "file";
467};
468
469const getDriveFolderParts = (
470 key: string,

Callers 2

copyGoogleDriveFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected