forked from enlightenment/efl
parent
8e9e67f075
commit
5cffd43943
|
@ -81,6 +81,7 @@ extern "C" {
|
||||||
EAPI int ecore_file_symlink (const char *src, const char *dest);
|
EAPI int ecore_file_symlink (const char *src, const char *dest);
|
||||||
EAPI char *ecore_file_realpath (const char *file);
|
EAPI char *ecore_file_realpath (const char *file);
|
||||||
EAPI int ecore_file_unlink (const char *file);
|
EAPI int ecore_file_unlink (const char *file);
|
||||||
|
EAPI int ecore_file_remove (const char *file);
|
||||||
EAPI const char *ecore_file_file_get (const char *path);
|
EAPI const char *ecore_file_file_get (const char *path);
|
||||||
EAPI char *ecore_file_dir_get (const char *path);
|
EAPI char *ecore_file_dir_get (const char *path);
|
||||||
|
|
||||||
|
|
|
@ -295,6 +295,18 @@ ecore_file_unlink(const char *file)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the given file or directory
|
||||||
|
* @param file The name of the file or directory to delete
|
||||||
|
* @return 1 on success, 0 on failure
|
||||||
|
*/
|
||||||
|
EAPI int
|
||||||
|
ecore_file_remove(const char *file)
|
||||||
|
{
|
||||||
|
if (remove(file) < 0) return 0;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a directory and all its contents
|
* Delete a directory and all its contents
|
||||||
* @param dir The name of the directory to delete
|
* @param dir The name of the directory to delete
|
||||||
|
|
Loading…
Reference in New Issue