Skip to content

Commit

Permalink
Check hidden files and mark 'Exlcude'
Browse files Browse the repository at this point in the history
Signed-off-by: Wonjae Park <j.wonjae.park@gmail.com>
  • Loading branch information
JustinWonjaePark committed Jul 10, 2024
1 parent 3572b11 commit 3d5dc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fosslight_source/_scan_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def is_exclude_file(file_path, prev_dir=None, prev_dir_exclude_value=None):
filename = os.path.basename(file_path)
if os.path.splitext(filename)[1] in _exclude_extension:
return True
if filename in _exclude_filename:
if filename.startswith('.') or filename in _exclude_filename:
return True

dir_path = os.path.dirname(file_path)
Expand Down

0 comments on commit 3d5dc66

Please sign in to comment.