Function gix_fs::dir::remove::empty_upward_until_boundary

source ยท
pub fn empty_upward_until_boundary<'a>(
    delete_dir: &'a Path,
    boundary_dir: &'a Path,
) -> Result<&'a Path>
Expand description

Delete all empty directories from delete_dir upward and until (not including) the boundary_dir.

Note that boundary_dir must contain delete_dir or an error is returned, otherwise delete_dir is returned on success.