Skip to content

Commit e76c32d

Browse files
committed
Fixed typo and added debug logs to note down skipped files
1 parent 38107a8 commit e76c32d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/murfey/client/watchdir.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def scan(self, modification_time: float | None = None, transfer_all: bool = Fals
130130
settling_time=scan_completion
131131
)
132132

133-
# Create a list of files stored based on their timestamps
133+
# Create a list of files sorted based on their timestamps
134134
files_for_transfer = []
135135
time_ordered_file_candidates = sorted(
136136
self._file_candidates,
@@ -260,6 +260,7 @@ def _scan_directory(
260260
char in entry.name
261261
for char in self._substrings_blacklist.get("directories", [])
262262
):
263+
log.debug(f"Skipping blacklisted directory {str(entry.name)!r}")
263264
continue
264265
elif entry.is_dir() and (
265266
modification_time is None or entry.stat().st_ctime >= modification_time
@@ -274,6 +275,7 @@ def _scan_directory(
274275
char in entry.name
275276
for char in self._substrings_blacklist.get("files", [])
276277
):
278+
log.debug(f"Skipping blacklisted file {str(entry.name)!r}")
277279
continue
278280
# Get file statistics and append file to dictionary
279281
try:

0 commit comments

Comments
 (0)