diff options
author | Vyacheslav Reutskiy <v.reutskiy@samsung.com> | 2016-11-23 15:58:45 +0200 |
---|---|---|
committer | Vyacheslav Reutskiy <v.reutskiy@samsung.com> | 2016-11-23 16:20:03 +0200 |
commit | 5e25b8037ca8858412627d76b6fe72e9c7279021 (patch) | |
tree | dc7c8c346cb6651a0486bb9093fa2cb494e877fd /src | |
parent | 56c202614b73f0e4c34d7a5cd070fe2b24d9217f (diff) |
ecore_file: use win api for delete folder
The RemoveDirectory on Windows guarantee that given folder will be
delete.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ecore_file/ecore_file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c index 11c03c46d1..1b8b10a2d8 100644 --- a/src/lib/ecore_file/ecore_file.c +++ b/src/lib/ecore_file/ecore_file.c | |||
@@ -296,7 +296,11 @@ ecore_file_mksubdirs(const char *base, const char **subdirs) | |||
296 | EAPI Eina_Bool | 296 | EAPI Eina_Bool |
297 | ecore_file_rmdir(const char *dir) | 297 | ecore_file_rmdir(const char *dir) |
298 | { | 298 | { |
299 | #ifdef _WIN32 | ||
300 | if (RemoveDirectory(dir) < 0) return EINA_FALSE; | ||
301 | #else | ||
299 | if (rmdir(dir) < 0) return EINA_FALSE; | 302 | if (rmdir(dir) < 0) return EINA_FALSE; |
303 | #endif /* _WIN32 */ | ||
300 | return EINA_TRUE; | 304 | return EINA_TRUE; |
301 | } | 305 | } |
302 | 306 | ||