Expand description
Filesystem scanning — discovers .md files in a vault and computes
slugs, titles, and content hashes for incremental sync.
Structs§
- Scanned
File - A markdown file discovered during a vault scan.
Functions§
- content_
hash - Compute SHA-256 hex digest of a string.
- diff_
scan - Diff scanned files against existing DB hashes.
Returns (
new_or_changedfiles, deleted slugs). - sanitize_
filename - Sanitize a page title for use as a filename (without extension).
- scan_
folder - Recursively scan a folder for .md files.
- scan_
single_ file - Scan a single file and return a
ScannedFileif it’s a valid .md file. - slug_
from_ path - Derive a slug from a relative file path. “notes/My Page.md” -> “notes/my-page”
- title_
from_ path - Derive a page title from a relative file path. “notes/My Page.md” -> “My Page”