Function gix_tempfile::remove_dir::empty_upward_until_boundary
source · pub fn empty_upward_until_boundary<'a>(
delete_dir: &'a Path,
boundary_dir: &'a Path
) -> Result<&'a Path, Error>
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.