Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_file


Modified Files:
        Ecore_File.h ecore_file.c 


Log Message:
- add rmdir and unlink wrappers

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/Ecore_File.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Ecore_File.h        15 Apr 2005 01:22:46 -0000      1.6
+++ Ecore_File.h        28 Apr 2005 21:53:36 -0000      1.7
@@ -53,12 +53,14 @@
    EAPI int        ecore_file_exists   (const char *file);
    EAPI int        ecore_file_is_dir   (const char *file);
    EAPI int        ecore_file_mkdir    (const char *dir);
+   EAPI int        ecore_file_rmdir    (const char *dir);
    EAPI int        ecore_file_mkpath   (const char *path);
    EAPI int        ecore_file_cp       (const char *src, const char *dst);
    EAPI char      *ecore_file_realpath (const char *file);
+   EAPI int        ecore_file_unlink   (const char *file);
    EAPI char      *ecore_file_get_file (char *path);
    EAPI char      *ecore_file_get_dir  (char *path);
-   
+
    EAPI int        ecore_file_can_exec (const char *file);
    EAPI char      *ecore_file_readlink (const char *link);
    EAPI Ecore_List *ecore_file_ls      (const char *dir);
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore_file.c        14 Apr 2005 13:35:50 -0000      1.6
+++ ecore_file.c        28 Apr 2005 21:53:36 -0000      1.7
@@ -58,6 +58,20 @@
 }
 
 int
+ecore_file_rmdir(const char *dir)
+{
+   if (rmdir(dir) < 0) return 0;
+   return 1;
+}
+
+int
+ecore_file_unlink(const char *file)
+{
+   if (unlink(file) < 0) return 0;
+   return 1;
+}
+
+int
 ecore_file_mkpath(const char *path)
 {
    char ss[PATH_MAX];




-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to