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

Function getLocalTree

packages/decap-cms-lib-util/src/implementation.ts:488–499  ·  view source on GitHub ↗
({
  localForage,
  branch,
  folder,
  extension,
  depth,
}: GetLocalTreeArgs)

Source from the content-addressed store, hash-verified

486}
487
488export async function getLocalTree({
489 localForage,
490 branch,
491 folder,
492 extension,
493 depth,
494}: GetLocalTreeArgs) {
495 const localTree = await localForage.getItem<LocalTree>(
496 getLocalKey({ branch, folder, extension, depth }),
497 );
498 return localTree;
499}
500
501type GetDiffFromLocalTreeMethods = {
502 getDifferences: (

Callers 1

listFilesFunction · 0.85

Calls 1

getLocalKeyFunction · 0.85

Tested by

no test coverage detected