From 13cbb7d987ebbb4e0187894c8d5ffc5ec0fa3b8e Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 22 Mar 2017 10:26:36 +0100 Subject: [PATCH] Fixed code by checking for file existence before checking if this is a directory. --- src/configuration/cms_default_setup.e | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configuration/cms_default_setup.e b/src/configuration/cms_default_setup.e index f84bb19..2f8c8fa 100644 --- a/src/configuration/cms_default_setup.e +++ b/src/configuration/cms_default_setup.e @@ -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