pub mod file; pub mod grep; pub mod mutate; pub mod search; pub mod tree; use std::path::Path; /// Frontend-facing path: forward-slash on every platform. pub fn to_canon(p: impl AsRef) -> String { let s = p.as_ref().to_string_lossy().into_owned(); #[cfg(windows)] { s.replace('\\', "/") } #[cfg(not(windows))] { s } }