Skip to content

Commit 87af875

Browse files
committed
Exclude dirs being returned for file check
1 parent df95594 commit 87af875

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

automation/script/module.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3720,6 +3720,8 @@ def find_file_in_paths(self, i):
37203720
f)]
37213721

37223722
for f in file_list:
3723+
if os.path.isdir(f):
3724+
continue
37233725
duplicate = False
37243726
for existing in found_files:
37253727
if os.path.samefile(existing, f):
@@ -3754,6 +3756,8 @@ def find_file_in_paths(self, i):
37543756
for suff in file_pattern_suffixes:
37553757
file_list = glob.glob(path_to_file + suff)
37563758
for f in file_list:
3759+
if os.path.isdir(f):
3760+
continue
37573761
duplicate = False
37583762

37593763
for existing in found_files:

0 commit comments

Comments
 (0)