fn collect_actual_files( root: &Path, current_directory: &Path, paths: &mut BTreeSet<PathBuf>, ) -> Result<()>