2012-02-27 17:05:10 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _FILEOPS
|
|
|
|
#define _FILEOPS
|
|
|
|
|
|
|
|
typedef void (*progress_callback_t)(int status,int total,void *user_data);
|
|
|
|
|
2012-05-24 20:48:26 +02:00
|
|
|
bool fsop_GetFileSizeBytes(char *path, size_t *filesize);
|
2012-08-26 17:20:51 +02:00
|
|
|
u64 fsop_GetFolderBytes(const char *source);
|
|
|
|
u32 fsop_GetFolderKb(const char *source);
|
2012-11-01 17:39:42 +01:00
|
|
|
u32 fsop_GetFreeSpaceKb(const char *path);
|
2012-04-08 17:54:34 +02:00
|
|
|
bool fsop_FileExist(const char *fn);
|
2012-08-16 14:47:25 +02:00
|
|
|
bool fsop_DirExist(const char *path);
|
2012-06-21 16:35:18 +02:00
|
|
|
void fsop_MakeFolder(char *path);
|
2012-05-24 20:48:26 +02:00
|
|
|
bool fsop_CopyFile(char *source, char *target, progress_callback_t spinner, void *spinner_data);
|
|
|
|
bool fsop_CopyFolder(char *source, char *target, progress_callback_t spinner, void *spinner_data);
|
2012-07-22 21:18:00 +02:00
|
|
|
void fsop_deleteFile(const char *source);
|
2012-08-20 21:15:52 +02:00
|
|
|
void fsop_deleteFolder(const char *source);
|
2012-02-27 17:05:10 +01:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|