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

Function parseGoogleDriveContentLength

packages/web-backend/src/Storage/index.ts:323–327  ·  view source on GitHub ↗
(file: GoogleDriveFile)

Source from the content-addressed store, hash-verified

321});
322
323const parseGoogleDriveContentLength = (file: GoogleDriveFile) => {
324 if (!file.size) return null;
325 const contentLength = Number(file.size);
326 return Number.isFinite(contentLength) ? contentLength : null;
327};
328
329const parseObjectKeyVideoId = (key: string) =>
330 parseVideoIdFromObjectKey(key).pipe(

Callers 1

recoverDriveFileIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected