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

Method relativePath

apps/server/internal/watcher/watcher.go:173–179  ·  view source on GitHub ↗
(absPath string)

Source from the content-addressed store, hash-verified

171}
172
173func (w *Watcher) relativePath(absPath string) string {
174 rel, err := filepath.Rel(w.root, absPath)
175 if err != nil {
176 return ""
177 }
178 return filepath.ToSlash(rel)
179}
180
181func (w *Watcher) isVaultSettingsPath(absPath string) bool {
182 return w.relativePath(absPath) == vaultSettingsFilePath

Callers 4

isVaultSettingsPathMethod · 0.95
commentsNotePathMethod · 0.95
handleMethod · 0.95
broadcastFolderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected