add debug infor if limit reach

This commit is contained in:
Antonio J. Delgado 2023-01-25 17:12:48 +02:00
parent 8f19045d1e
commit b754643db2

View file

@ -91,6 +91,7 @@ class find_duplicate_files:
try: try:
for file in os.scandir(path): for file in os.scandir(path):
if len(files) > self.limit: if len(files) > self.limit:
self._log.debug(f"Limit of {self.limit} passed ({len(files)})")
break break
if not file.name.startswith('.'): if not file.name.startswith('.'):
if not self._test_exclude(file.path): if not self._test_exclude(file.path):