Skip to main content

relative_path_for_storage

Function relative_path_for_storage 

Source
pub fn relative_path_for_storage(p: &Path) -> String
Expand description

Convert a relative path into the canonical string form used in the photos.file_path and related columns: forward slashes only.

Path::join(s) accepts forward slashes on every platform, so the read side stays unchanged — only the storage side needs to settle on one form.