pub fn get_parent_path(path: &Path) -> Option<&Path>
Get the parent directory path, handling root correctly.