From 7885481b840d09fc1ec69f30baa8c708e920dff9 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 16 Feb 2022 15:55:42 -0500 Subject: [PATCH] Ignore hidden files --- crc/services/file_system_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crc/services/file_system_service.py b/crc/services/file_system_service.py index e1dee313..c9453d23 100644 --- a/crc/services/file_system_service.py +++ b/crc/services/file_system_service.py @@ -100,8 +100,10 @@ class FileSystemService(object): items = os.scandir(file_path) for item in items: if item.is_file(): + if item.name.startswith('.'): + continue # Ignore hidden files if item.name == FileSystemService.WF_JSON_FILE: - continue # Ignore the json files. + continue # Ignore the json files. if file_name is not None and item.name != file_name: continue file = FileSystemService.to_file_object_from_dir_entry(item)