Skip to content

Commit efc899d

Browse files
committed
Add files output exclude for hidden paths
1 parent 8a85b86 commit efc899d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

snekbox/memfs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ def files(
138138
"""
139139
count = 0
140140
for file in self.output.rglob(pattern):
141+
# Ignore hidden directories or files
142+
if any(part.startswith(".") for part in file.parts):
143+
log.info(f"Skipping hidden path {file!s}")
144+
continue
145+
141146
if exclude_files and (orig_time := exclude_files.get(file)):
142147
new_time = file.stat().st_mtime
143148
log.info(f"Checking {file.name} ({orig_time=}, {new_time=})")

0 commit comments

Comments
 (0)