aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-07-03 09:35:25 +0200
committerTom Hacohen <tom@stosb.com>2015-07-03 16:23:06 +0100
commit308dbff1410af9d3d3f9e22e2acf3ab7b3f4b14a (patch)
tree03bf1c23c17d8b1f29591127a76b37d9f411888e /src/lib/ecore_file
parentEcore_File: improve comment of ecore_file_mkdir() (diff)
downloadefl-308dbff1410af9d3d3f9e22e2acf3ab7b3f4b14a.tar.gz
Ecore_File: better implementation of ecore_file_mkdir()
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index d9ee50f4a8..db0a1e65c4 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -214,8 +214,7 @@ static mode_t default_mode = S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S
EAPI Eina_Bool
ecore_file_mkdir(const char *dir)
{
- if (mkdir(dir, default_mode) < 0) return EINA_FALSE;
- return EINA_TRUE;
+ return (mkdir(dir, default_mode) == 0);
}
/**