From: Mike Blumenkrantz Date: Tue, 28 May 2013 13:37:53 +0000 (+0100) Subject: make new dir creation more clear for error conditions X-Git-Tag: submit/efl/20131021.015651~534 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d6b139f353491fc4caae0a83fb0883fe2c6cb35;p=platform%2Fupstream%2Fenlightenment.git make new dir creation more clear for error conditions --- diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c index 95d125c..68548d2 100644 --- a/src/bin/e_fm.c +++ b/src/bin/e_fm.c @@ -9586,10 +9586,13 @@ _e_fm2_new_thread_helper(Ecore_Thread *eth, Eina_Bool dir) errno = 0; if (stat(buf, &st) && (errno == ENOENT)) { - if (dir && ecore_file_mkdir(buf)) + if (dir) { - ecore_thread_feedback(eth, strdup(buf)); - return; + if (ecore_file_mkdir(buf)) + { + ecore_thread_feedback(eth, strdup(buf)); + return; + } } else { @@ -9611,10 +9614,13 @@ _e_fm2_new_thread_helper(Ecore_Thread *eth, Eina_Bool dir) errno = 0; if (stat(buf, &st) && (errno == ENOENT)) { - if (dir && ecore_file_mkdir(buf)) + if (dir) { - ecore_thread_feedback(eth, strdup(buf)); - return; + if (ecore_file_mkdir(buf)) + { + ecore_thread_feedback(eth, strdup(buf)); + return; + } } else {