fn copy_dir_recursive_inner( src: &Path, dst: &Path, allowed_root: &Path, visited: &mut Vec<PathBuf>, ) -> Result<()>