pub fn destructure_path<P: AsRef<Path>>(path: P) -> Option<(PathBuf, String)>