(root: string, abs: string)
| 31 | } |
| 32 | |
| 33 | function commentsNotePath(root: string, abs: string): string | null { |
| 34 | const rel = relativeVaultPath(root, abs) |
| 35 | if (!rel.startsWith(NOTE_COMMENTS_PREFIX) || !rel.endsWith(NOTE_COMMENTS_SUFFIX)) return null |
| 36 | return rel.slice(NOTE_COMMENTS_PREFIX.length, -NOTE_COMMENTS_SUFFIX.length) |
| 37 | } |
| 38 | |
| 39 | export class VaultWatcher { |
| 40 | private watcher: FSWatcher | null = null |
no test coverage detected