Skip to content

Commit 3d5dc66

Browse files
Check hidden files and mark 'Exlcude'
Signed-off-by: Wonjae Park <[email protected]>
1 parent 3572b11 commit 3d5dc66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_source/_scan_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def is_exclude_file(file_path, prev_dir=None, prev_dir_exclude_value=None):
123123
filename = os.path.basename(file_path)
124124
if os.path.splitext(filename)[1] in _exclude_extension:
125125
return True
126-
if filename in _exclude_filename:
126+
if filename.startswith('.') or filename in _exclude_filename:
127127
return True
128128

129129
dir_path = os.path.dirname(file_path)

0 commit comments

Comments
 (0)