add else
This commit is contained in:
parent
2b3e2fe6e0
commit
6380a1404d
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,8 @@ class image_classifier:
|
||||||
for entry in entries:
|
for entry in entries:
|
||||||
if not entry.name.startswith('.') and entry.is_file():
|
if not entry.name.startswith('.') and entry.is_file():
|
||||||
self.process_file(entry.path)
|
self.process_file(entry.path)
|
||||||
|
else:
|
||||||
|
self._log.error(f"Unable to access directory '{directory}'")
|
||||||
|
|
||||||
def recursive_scandir(path, ignore_hidden_files=True):
|
def recursive_scandir(path, ignore_hidden_files=True):
|
||||||
files = []
|
files = []
|
||||||
|
|
Loading…
Reference in a new issue