hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=5edd1eec8f42235e1999c9d645120958ca312741

commit 5edd1eec8f42235e1999c9d645120958ca312741
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Mon Sep 26 20:11:27 2016 +0900

    fix the incorrect API usage.
    
    Previous api call for directory check is not proper.
    Fixed to the proper API.
    
    This was noticed by ecore_file_path_dir_exists() bug fix.
---
 src/bin/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/main.c b/src/bin/main.c
index c7d4201..c281823 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -934,7 +934,7 @@ enventor_lock_create(void)
 
    //Exception 2
    //Create temp directory if it doesn't exist.
-   if (!ecore_file_path_dir_exists(tmpdir))
+   if (!ecore_file_is_dir(tmpdir))
      {
         Eina_Bool success = ecore_file_mkdir(tmpdir);
         if (!success)
@@ -1015,7 +1015,7 @@ enventor_lock_remove()
         return;
      }
 
-   if (!ecore_file_path_dir_exists(tmpdir))
+   if (!ecore_file_is_dir(tmpdir))
      {
         EINA_LOG_ERR("Cannot access to temporary directory?! = %s", tmpdir);
         return;

-- 


Reply via email to