read filename

This commit is contained in:
Antonio J. Delgado 2022-05-30 11:50:10 +03:00
parent d68dcdcdc9
commit c9af9a815f

View file

@ -117,6 +117,7 @@ class image_classifier:
''' Obtain the file date from EXIF metadata or the file name. Return None
if it's not accessible or 'unknown-time' if it can't determine the date'''
file_date = None
filename = os.path.basename(file)
if not os.access(file, os.R_OK):
self._log.error(f"The file '{file}' is not readable.")
else: