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

Function renameFolder

apps/web/src/bridge/http-bridge.ts:555–564  ·  view source on GitHub ↗
(
  folder: NoteFolder,
  oldSubpath: string,
  newSubpath: string
)

Source from the content-addressed store, hash-verified

553}
554
555function renameFolder(
556 folder: NoteFolder,
557 oldSubpath: string,
558 newSubpath: string
559): Promise<string> {
560 return jsonRequest<{ subpath: string }>('/folders/rename', {
561 method: 'POST',
562 body: { folder, oldSubpath, newSubpath }
563 }).then(r => r.subpath)
564}
565
566function deleteFolder(folder: NoteFolder, subpath: string): Promise<void> {
567 return jsonRequest<void>('/folders/delete', {

Callers 1

renameDatabaseFunction · 0.70

Calls 1

jsonRequestFunction · 0.85

Tested by

no test coverage detected