diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2009-12-19 19:09:37 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2009-12-19 19:09:37 +0000 |
commit | 5cffd43943bab95751b84dc5123c1f90695c7442 (patch) | |
tree | 4f8e46478e5c6befcc521857dd17292b8b9f0631 /legacy/ecore/src/lib/ecore_file/ecore_file.c | |
parent | 8e9e67f075b049f944e5d77717bda0d333160ebc (diff) |
add a wrapper around remove()
SVN revision: 44578
Diffstat (limited to '')
-rw-r--r-- | legacy/ecore/src/lib/ecore_file/ecore_file.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c index 064016ae80..318d6fff19 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c | |||
@@ -296,6 +296,18 @@ ecore_file_unlink(const char *file) | |||
296 | } | 296 | } |
297 | 297 | ||
298 | /** | 298 | /** |
299 | * Remove the given file or directory | ||
300 | * @param file The name of the file or directory to delete | ||
301 | * @return 1 on success, 0 on failure | ||
302 | */ | ||
303 | EAPI int | ||
304 | ecore_file_remove(const char *file) | ||
305 | { | ||
306 | if (remove(file) < 0) return 0; | ||
307 | return 1; | ||
308 | } | ||
309 | |||
310 | /** | ||
299 | * Delete a directory and all its contents | 311 | * Delete a directory and all its contents |
300 | * @param dir The name of the directory to delete | 312 | * @param dir The name of the directory to delete |
301 | * @return 1 on success, 0 on failure | 313 | * @return 1 on success, 0 on failure |