- if its a file, dont bother with it, just unlink it

SVN revision: 17880
This commit is contained in:
codewarrior 2005-10-24 09:37:13 +00:00 committed by codewarrior
parent b21a42f0f7
commit 7f10622a24
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@ ecore_file_recursive_rm(const char *dir)
Ecore_List *list;
int ret;
if(!ecore_file_is_dir(dir))
return ecore_file_unlink(dir);
ret = 0;
dirp = opendir(dir);
if (!dirp) return ret;