Skip to main content

resolve_read_path

Function resolve_read_path 

Source
pub fn resolve_read_path(path: &str, cwd: &Path) -> PathBuf
Expand description

Resolve a path for reading, trying macOS-specific variants if the initial path doesn’t exist.

macOS may store filenames in:

  • NFD (decomposed) Unicode form
  • With narrow no-break spaces before AM/PM in screenshots
  • With curly quotes (U+2019) instead of straight apostrophes