Functions | |
EAPI int | ecore_file_init (void) |
Initialize Ecore_File and the services it will use. | |
EAPI int | ecore_file_shutdown (void) |
Shutdown the Ecore_File. | |
EAPI long long | ecore_file_mod_time (const char *file) |
Get the time of the last modification to the give file. | |
EAPI long long | ecore_file_size (const char *file) |
Get the size of the given file. | |
EAPI int | ecore_file_exists (const char *file) |
Check if file exists. | |
EAPI int | ecore_file_is_dir (const char *file) |
Check if file is a directory. | |
EAPI int | ecore_file_mkdir (const char *dir) |
Create a new directory. | |
EAPI int | ecore_file_rmdir (const char *dir) |
Delete the given dir. | |
EAPI int | ecore_file_recursive_rm (const char *dir) |
Delete a directory and all its contents. | |
EAPI int | ecore_file_mkpath (const char *path) |
Create a complete path. | |
EAPI int | ecore_file_cp (const char *src, const char *dst) |
Copy a file. | |
EAPI int | ecore_file_mv (const char *src, const char *dst) |
Move a file. | |
EAPI int | ecore_file_symlink (const char *src, const char *dest) |
Create a symbolic link. | |
EAPI char * | ecore_file_realpath (const char *file) |
Get the canonicalized absolute pathname. | |
EAPI int | ecore_file_unlink (const char *file) |
Delete the given file. | |
EAPI const char * | ecore_file_file_get (const char *path) |
Get the filename from a give path. | |
EAPI char * | ecore_file_dir_get (const char *path) |
Get the directory where file reside. | |
EAPI int | ecore_file_can_read (const char *file) |
Check if file can be read. | |
EAPI int | ecore_file_can_write (const char *file) |
Check if file can be written. | |
EAPI int | ecore_file_can_exec (const char *file) |
Check if file can be executed. | |
EAPI char * | ecore_file_readlink (const char *link) |
Get the path pointed by link. | |
EAPI Ecore_List * | ecore_file_ls (const char *dir) |
Get the list of the files and directories in a given directory. | |
EAPI char * | ecore_file_app_exe_get (const char *app) |
FIXME: To be documented. | |
EAPI char * | ecore_file_escape_name (const char *filename) |
Add the escape sequence ('\') to the given filename. | |
EAPI char * | ecore_file_strip_ext (const char *file) |
Remove the extension from a given path. | |
EAPI void | ecore_file_monitor_del (Ecore_File_Monitor *ecore_file_monitor) |
Stop monitoring a path. | |
EAPI const char * | ecore_file_monitor_path_get (Ecore_File_Monitor *ecore_file_monitor) |
Get the monitored path. | |
EAPI int | ecore_file_path_dir_exists (const char *in_dir) |
Check if the given directory is in PATH. | |
EAPI int | ecore_file_app_installed (const char *exe) |
Check if the given application is installed. | |
EAPI Ecore_List * | ecore_file_app_list (void) |
Get a list of all the applications installed on the system. | |
EAPI int | ecore_file_download (const char *url, const char *dst, void(*completion_cb)(void *data, const char *file, int status), int(*progress_cb)(void *data, const char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow), void *data) |
Download url to the given dst . | |
EAPI int | ecore_file_download_protocol_available (const char *protocol) |
Check if the given protocol is available. |
EAPI int ecore_file_app_installed | ( | const char * | exe | ) |
Check if the given application is installed.
exe | The name of the application |
EAPI Ecore_List* ecore_file_app_list | ( | void | ) |
Get a list of all the applications installed on the system.
EAPI int ecore_file_can_exec | ( | const char * | file | ) |
Check if file can be executed.
file | The name of the file |
EAPI int ecore_file_can_read | ( | const char * | file | ) |
Check if file can be read.
file | The name of the file |
EAPI int ecore_file_can_write | ( | const char * | file | ) |
Check if file can be written.
file | The name of the file |
EAPI int ecore_file_cp | ( | const char * | src, | |
const char * | dst | |||
) |
Copy a file.
src | The name of the source file | |
dst | The name of the destination file |
EAPI char* ecore_file_dir_get | ( | const char * | file | ) |
Get the directory where file reside.
file | The name of the file |
EAPI int ecore_file_download | ( | const char * | url, | |
const char * | dst, | |||
void(*)(void *data, const char *file, int status) | completion_cb, | |||
int(*)(void *data, const char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow) | progress_cb, | |||
void * | data | |||
) |
Download url
to the given dst
.
url | The complete url to download | |
dst | The local file to save the downloaded to | |
completion_cb | A callback called on download complete | |
progress_cb | A callback called during the download operation |
dst
already exist it will not be overwritten and the function will fail.EAPI int ecore_file_download_protocol_available | ( | const char * | protocol | ) |
Check if the given protocol is available.
protocol | The protocol to check |
protocol
can be 'http://', 'ftp://' or 'file://'.EAPI char* ecore_file_escape_name | ( | const char * | filename | ) |
Add the escape sequence ('\') to the given filename.
filename | The file name |
EAPI int ecore_file_exists | ( | const char * | file | ) |
Check if file exists.
file | The name of the file |
EAPI const char* ecore_file_file_get | ( | const char * | path | ) |
Get the filename from a give path.
path | The complete path |
EAPI int ecore_file_init | ( | void | ) |
Initialize Ecore_File and the services it will use.
Call this function once before you use any of the ecore file functions.
EAPI int ecore_file_is_dir | ( | const char * | file | ) |
Check if file is a directory.
file | The name of the file |
EAPI Ecore_List* ecore_file_ls | ( | const char * | dir | ) |
Get the list of the files and directories in a given directory.
The list will be sorted with strcoll as compare function. That means that you may want to set the current locale for the category LC_COLLATE with setlocale(). For more information see the manual pages of strcoll and setlocale. The list will not contain the directory entries for '.' and '..'.
dir | The name of the directory to list |
EAPI int ecore_file_mkdir | ( | const char * | dir | ) |
Create a new directory.
dir | The name of the directory to create |
EAPI int ecore_file_mkpath | ( | const char * | path | ) |
Create a complete path.
path | The path to create |
EAPI long long ecore_file_mod_time | ( | const char * | file | ) |
Get the time of the last modification to the give file.
file | The name of the file |
EAPI void ecore_file_monitor_del | ( | Ecore_File_Monitor * | em | ) |
Stop monitoring a path.
em | The Ecore_File_Monitor to stop |
EAPI const char* ecore_file_monitor_path_get | ( | Ecore_File_Monitor * | em | ) |
Get the monitored path.
em | The Ecore_File_Monitor to query |
em
EAPI int ecore_file_mv | ( | const char * | src, | |
const char * | dst | |||
) |
Move a file.
src | The name of the source file | |
dst | The name of the destination file |
EAPI int ecore_file_path_dir_exists | ( | const char * | in_dir | ) |
Check if the given directory is in PATH.
The | name of the directory to search in PATH |
EAPI char* ecore_file_readlink | ( | const char * | link | ) |
Get the path pointed by link.
link | The name of the link |
EAPI char* ecore_file_realpath | ( | const char * | file | ) |
Get the canonicalized absolute pathname.
file | The file path |
EAPI int ecore_file_recursive_rm | ( | const char * | dir | ) |
Delete a directory and all its contents.
dir | The name of the directory to delete |
EAPI int ecore_file_rmdir | ( | const char * | dir | ) |
Delete the given dir.
dir | The name of the directory to delete |
EAPI int ecore_file_shutdown | ( | void | ) |
Shutdown the Ecore_File.
EAPI long long ecore_file_size | ( | const char * | file | ) |
Get the size of the given file.
file | The name of the file |
EAPI char* ecore_file_strip_ext | ( | const char * | path | ) |
Remove the extension from a given path.
path | The name of the file |
EAPI int ecore_file_symlink | ( | const char * | src, | |
const char * | dest | |||
) |
Create a symbolic link.
src | The name of the file to link | |
dest | The name of link |
EAPI int ecore_file_unlink | ( | const char * | file | ) |
Delete the given file.
file | The name of the file to delete |