(absPath string)
| 171 | } |
| 172 | |
| 173 | func (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 | |
| 181 | func (w *Watcher) isVaultSettingsPath(absPath string) bool { |
| 182 | return w.relativePath(absPath) == vaultSettingsFilePath |
no outgoing calls
no test coverage detected