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

Function deleteFile

packages/decap-cms-backend-test/src/implementation.ts:82–84  ·  view source on GitHub ↗
(path: string, tree: RepoTree)

Source from the content-addressed store, hash-verified

80}
81
82function deleteFile(path: string, tree: RepoTree) {
83 unset(tree, path.split('/'));
84}
85
86function moveFile(path: string, newPath: string, tree: RepoTree, hasSubfolders: boolean) {
87 const sourceDir = dirname(path);

Callers 2

moveFileFunction · 0.70
deleteFilesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected