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

Function getLocalTree

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

Source from the content-addressed store, hash-verified

455}
456
457export async function getLocalTree({
458 localForage,
459 branch,
460 folder,
461 extension,
462 depth,
463}: GetLocalTreeArgs) {
464 const localTree = await localForage.getItem<LocalTree>(
465 getLocalKey({ branch, folder, extension, depth }),
466 );
467 return localTree;
468}
469
470type GetDiffFromLocalTreeMethods = {
471 getDifferences: (

Callers 1

listFilesFunction · 0.85

Calls 1

getLocalKeyFunction · 0.85

Tested by

no test coverage detected