diff --git a/arkindex_worker/git.py b/arkindex_worker/git.py index 4f4f8e410cda2bf178fa8bc529fb6ab59d44a53c..c8d7187eb2bb13a46c5dd6bb3de66bd0b4b0b393 100644 --- a/arkindex_worker/git.py +++ b/arkindex_worker/git.py @@ -351,7 +351,10 @@ class GitHelper: while keeping the same directory structure """ file_count = 0 - for file in export_out_dir.rglob("*.*"): + file_names = [ + file_name for file_name in export_out_dir.rglob("*") if file_name.is_file() + ] + for file in file_names: rel_file_path = file.relative_to(export_out_dir) out_file = self.export_path / rel_file_path if not out_file.exists():