ecore_file: use win api for delete folder

The RemoveDirectory on Windows guarantee that given folder will be
delete.
This commit is contained in:
Vyacheslav Reutskiy 2016-11-23 15:58:45 +02:00
parent 56c202614b
commit 5e25b8037c
1 changed files with 4 additions and 0 deletions

View File

@ -296,7 +296,11 @@ ecore_file_mksubdirs(const char *base, const char **subdirs)
EAPI Eina_Bool
ecore_file_rmdir(const char *dir)
{
#ifdef _WIN32
if (RemoveDirectory(dir) < 0) return EINA_FALSE;
#else
if (rmdir(dir) < 0) return EINA_FALSE;
#endif /* _WIN32 */
return EINA_TRUE;
}