From ae104d26f37f956241d4e3ec0d13fed0d54176e1 Mon Sep 17 00:00:00 2001 From: Yoann Schneider <yschneider@teklia.com> Date: Wed, 12 May 2021 12:48:25 +0200 Subject: [PATCH] fix to include files without extension --- arkindex_worker/git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arkindex_worker/git.py b/arkindex_worker/git.py index 4f4f8e41..c8d7187e 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(): -- GitLab