Skip to content

Commit

Permalink
2458 Removed duplicate line for excluding hidden directories in find_…
Browse files Browse the repository at this point in the history
…range.py
  • Loading branch information
id774 committed Mar 16, 2024
1 parent 9531249 commit 7eb32e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion find_range.py
Expand Up @@ -143,7 +143,6 @@ def list_recent_files(root_dir, start_datetime, end_datetime, include_hidden, fi
for dirpath, dirnames, filenames in os.walk(root_dir):
# Exclude hidden directories if not specified by the user
if not include_hidden:
dirnames[:] = [d for d in dirnames if not d.startswith('.')]
dirnames[:] = [d for d in dirnames if not d.startswith('.')] # Exclude hidden directories from dirnames to prevent walking into them
if os.path.basename(dirpath).startswith('.'):
continue # Skip hidden directories entirely
Expand Down

0 comments on commit 7eb32e6

Please sign in to comment.