Skip to main content

container_path_from_disk_path

Function container_path_from_disk_path 

Source
fn container_path_from_disk_path(disk_path: &Path, base_folder: &Path) -> String
Expand description

Rebuilds the in-pack container path of a file extracted under base_folder.

The extraction keeps the in-pack structure, so the container path is just the file’s path relative to base_folder with forward slashes (the separator container paths use).