MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / listFolders

Method listFolders

apps/server/internal/httpserver/server.go:504–511  ·  view source on GitHub ↗
(w http.ResponseWriter, _ *http.Request)

Source from the content-addressed store, hash-verified

502}
503
504func (s *Server) listFolders(w http.ResponseWriter, _ *http.Request) {
505 folders, err := s.currentVault().ListFolders()
506 if err != nil {
507 writeError(w, err)
508 return
509 }
510 writeJSON(w, http.StatusOK, folders)
511}
512
513func (s *Server) listAssets(w http.ResponseWriter, _ *http.Request) {
514 assets, err := s.currentVault().ListAssets()

Callers

nothing calls this directly

Calls 4

currentVaultMethod · 0.95
writeErrorFunction · 0.85
writeJSONFunction · 0.85
ListFoldersMethod · 0.80

Tested by

no test coverage detected