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

Function filesystemRootForPath

apps/server/internal/httpserver/server.go:428–433  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

426}
427
428func filesystemRootForPath(p string) string {
429 if volume := filepath.VolumeName(p); volume != "" {
430 return volume + string(filepath.Separator)
431 }
432 return string(filepath.Separator)
433}
434
435func (s *Server) browseDirectories(w http.ResponseWriter, r *http.Request) {
436 requested := strings.TrimSpace(r.URL.Query().Get("path"))

Callers 2

browseRootLabelFunction · 0.85
browseShortcutsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected