forked from enlightenment/efl
parent
0e7786ecc4
commit
48e0355efe
|
@ -51,6 +51,7 @@ extern "C" {
|
|||
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_size (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);
|
||||
|
|
|
@ -51,6 +51,15 @@ ecore_file_mod_time(const char *file)
|
|||
return st.st_mtime;
|
||||
}
|
||||
|
||||
int
|
||||
ecore_file_size(const char *file)
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
if (stat(file, &st) < 0) return 0;
|
||||
return st.st_size;
|
||||
}
|
||||
|
||||
int
|
||||
ecore_file_exists(const char *file)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue