MCPcopy Create free account
hub / github.com/decaporg/decap-cms / readFile

Method readFile

packages/decap-cms-backend-gitlab/src/implementation.ts:452–456  ·  view source on GitHub ↗
(
      path: string,
      id: string | null | undefined,
      { parseText }: { parseText: boolean },
    )

Source from the content-addressed store, hash-verified

450
451 loadMediaFile(branch: string, file: UnpublishedEntryMediaFile) {
452 const readFile = (
453 path: string,
454 id: string | null | undefined,
455 { parseText }: { parseText: boolean },
456 ) => this.api!.readFile(path, id, { branch, parseText, lfs: true });
457
458 return getMediaAsBlob(file.path, null, readFile).then(blob => {
459 const name = basename(file.path);

Callers 4

getEntryMethod · 0.45
readMediaFileMethod · 0.45
API.spec.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected