normalize_path_for_db

Function normalize_path_for_db 

Source
pub fn normalize_path_for_db(s: &str) -> String
Expand description

Strips the synthetic /System/Volumes/Data prefix when present so stored paths match user-visible paths and use fewer bytes in row data and FTS5 indexes. Matches traversal dedup in audio_scanner, unified_walker, etc.