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

Function persistLocalTree

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

Source from the content-addressed store, hash-verified

472};
473
474export async function persistLocalTree({
475 localForage,
476 localTree,
477 branch,
478 folder,
479 extension,
480 depth,
481}: PersistLocalTreeArgs) {
482 await localForage.setItem<LocalTree>(
483 getLocalKey({ branch, folder, extension, depth }),
484 localTree,
485 );
486}
487
488export async function getLocalTree({
489 localForage,

Callers 2

listAllFilesAndPersistFunction · 0.85
listFilesFunction · 0.85

Calls 1

getLocalKeyFunction · 0.85

Tested by

no test coverage detected