Fixed code by checking for file existence before checking if this is a directory.
This commit is contained in:
@@ -117,7 +117,7 @@ feature -- Access
|
|||||||
create {NOTIFICATION_STORAGE_MAILER} l_storage_mailer.make (create {NOTIFICATION_EMAIL_FILE_STORAGE}.make (io.output))
|
create {NOTIFICATION_STORAGE_MAILER} l_storage_mailer.make (create {NOTIFICATION_EMAIL_FILE_STORAGE}.make (io.output))
|
||||||
else
|
else
|
||||||
create {RAW_FILE} f.make_with_name (l_output)
|
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))
|
create {NOTIFICATION_STORAGE_MAILER} l_storage_mailer.make (create {NOTIFICATION_EMAIL_DIRECTORY_STORAGE}.make (f.path))
|
||||||
else
|
else
|
||||||
if not f.exists then
|
if not f.exists then
|
||||||
|
|||||||
Reference in New Issue
Block a user