pub fn relative_to(path: &Path, base: &Path) -> Result<PathBuf, Error>
Expand description
Give the path relative to the base directory
lib/python/site-packages/foo/init.py and lib/python/site-packages -> foo/init.py lib/marker.txt and lib/python/site-packages -> ../../marker.txt bin/foo_launcher and lib/python/site-packages -> ../../../bin/foo_launcher