projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b85bd2
)
ecore_file: use win api for delete folder
author
Vyacheslav Reutskiy
<v.reutskiy@samsung.com>
Wed, 23 Nov 2016 13:58:45 +0000
(15:58 +0200)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:23:55 +0000
(16:23 +0900)
The RemoveDirectory on Windows guarantee that given folder will be
delete.
Change-Id: Ic1c625afe8f1f292d800b9f554d9b36c0d549a1a
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
src/lib/ecore_file/ecore_file.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_file/ecore_file.c
b/src/lib/ecore_file/ecore_file.c
index
4a1df05
..
656d3df
100644
(file)
--- a/
src/lib/ecore_file/ecore_file.c
+++ b/
src/lib/ecore_file/ecore_file.c
@@
-315,7
+315,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;
}