SVN revision: 17205
This commit is contained in:
sebastid 2005-10-05 18:38:27 +00:00 committed by sebastid
parent 503de08b68
commit dcb7726415
2 changed files with 33 additions and 18 deletions

View File

@ -48,24 +48,26 @@ extern "C" {
} Ecore_File_Event;
EAPI int ecore_file_init (void);
EAPI int ecore_file_shutdown (void);
EAPI time_t ecore_file_mod_time (const char *file);
EAPI int ecore_file_exists (const char *file);
EAPI int ecore_file_is_dir (const char *file);
EAPI int ecore_file_mkdir (const char *dir);
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);
EAPI char *ecore_file_get_dir (char *path);
EAPI int ecore_file_init (void);
EAPI int ecore_file_shutdown (void);
EAPI time_t ecore_file_mod_time (const char *file);
EAPI int ecore_file_exists (const char *file);
EAPI int ecore_file_is_dir (const char *file);
EAPI int ecore_file_mkdir (const char *dir);
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);
EAPI char *ecore_file_get_dir (char *path);
EAPI int ecore_file_can_exec (const char *file);
EAPI char *ecore_file_readlink (const char *link);
EAPI Ecore_List *ecore_file_ls (const char *dir);
EAPI int ecore_file_can_exec (const char *file);
EAPI char *ecore_file_readlink (const char *link);
EAPI Ecore_List *ecore_file_ls (const char *dir);
EAPI char *ecore_file_app_exe_get (const char *app);
EAPI char *ecore_file_strip_ext (const char *file);
EAPI Ecore_File_Monitor *ecore_file_monitor_add(const char *path,
void (*func) (void *data,
@ -77,7 +79,6 @@ extern "C" {
EAPI const char *ecore_file_monitor_path_get(Ecore_File_Monitor *ecore_file_monitor);
EAPI int ecore_file_app_installed(const char *exe);
EAPI char *ecore_file_app_exe_get(const char *app);
EAPI int ecore_file_download(const char *url, const char *dst,
void (*completion_cb)(void *data,

View File

@ -374,3 +374,17 @@ ecore_file_app_exe_get(const char *app)
*pp = 0;
return exe;
}
char *
ecore_file_strip_ext(const char *path)
{
char *p;
file = strdup(path);
p = strrchr(file, '.');
if (p)
*p = 0;
return file;
}