MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / moveToTrash

Function moveToTrash

apps/desktop/src/main/vault.ts:3232–3234  ·  view source on GitHub ↗
(root: string, rel: string)

Source from the content-addressed store, hash-verified

3230}
3231
3232export function moveToTrash(root: string, rel: string): Promise<NoteMeta> {
3233 return moveBetweenFolders(root, rel, 'trash')
3234}
3235
3236export function restoreFromTrash(root: string, rel: string): Promise<NoteMeta> {
3237 return moveBetweenFolders(root, rel, 'inbox')

Callers 3

vault.test.tsFile · 0.90
registerIpcFunction · 0.90
cmdTrashFunction · 0.50

Calls 1

moveBetweenFoldersFunction · 0.70

Tested by

no test coverage detected