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

Function persistLocalTree

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

Source from the content-addressed store, hash-verified

441};
442
443export async function persistLocalTree({
444 localForage,
445 localTree,
446 branch,
447 folder,
448 extension,
449 depth,
450}: PersistLocalTreeArgs) {
451 await localForage.setItem<LocalTree>(
452 getLocalKey({ branch, folder, extension, depth }),
453 localTree,
454 );
455}
456
457export async function getLocalTree({
458 localForage,

Callers 2

listAllFilesAndPersistFunction · 0.85
listFilesFunction · 0.85

Calls 1

getLocalKeyFunction · 0.85

Tested by

no test coverage detected