Skip to content

Commit 4b7dc47

Browse files
Merge pull request #166 from fosslight/dev_exclude_hidden
Check hidden files and mark 'Exlcude'.
2 parents 3572b11 + 3d5dc66 commit 4b7dc47

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)