forked from enlightenment/efl
parent
e600739282
commit
a63963d14b
|
@ -56,6 +56,7 @@ extern "C" {
|
|||
EAPI int ecore_file_rmdir (const char *dir);
|
||||
EAPI int ecore_file_mkpath (const char *path);
|
||||
EAPI int ecore_file_cp (const char *src, const char *dst);
|
||||
EAPI int ecore_file_mv (const char *src, const char *dst);
|
||||
EAPI char *ecore_file_realpath (const char *file);
|
||||
EAPI int ecore_file_unlink (const char *file);
|
||||
EAPI char *ecore_file_get_file (char *path);
|
||||
|
|
|
@ -119,6 +119,14 @@ ecore_file_cp(const char *src, const char *dst)
|
|||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
ecore_file_mv(const char *src, const char *dst)
|
||||
{
|
||||
if (ecore_file_exists(dst)) return 0;
|
||||
if (rename(src, dst)) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
char *
|
||||
ecore_file_realpath(const char *file)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue