Fixed code by checking for file existence before checking if this is a directory.

This commit is contained in:
2017-03-22 10:26:36 +01:00
parent dbfe14e77e
commit 13cbb7d987

View File

@@ -117,7 +117,7 @@ feature -- Access
create {NOTIFICATION_STORAGE_MAILER} l_storage_mailer.make (create {NOTIFICATION_EMAIL_FILE_STORAGE}.make (io.output))
else
create {RAW_FILE} f.make_with_name (l_output)
if f.is_directory then
if f.exists and then f.is_directory then
create {NOTIFICATION_STORAGE_MAILER} l_storage_mailer.make (create {NOTIFICATION_EMAIL_DIRECTORY_STORAGE}.make (f.path))
else
if not f.exists then