mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-30 13:51:51 +01:00
f57507c4f3
-added crc32 buffer and limited checked filesize to 1gb
27 lines
828 B
C
27 lines
828 B
C
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#ifndef _FILEOPS
|
|
#define _FILEOPS
|
|
|
|
typedef void (*progress_callback_t)(int status,int total,void *user_data);
|
|
|
|
bool fsop_GetFileSizeBytes(const char *path, size_t *filesize);
|
|
u64 fsop_GetFolderBytes(const char *source);
|
|
u32 fsop_GetFolderKb(const char *source);
|
|
u32 fsop_GetFreeSpaceKb(const char *path);
|
|
bool fsop_FileExist(const char *fn);
|
|
bool fsop_DirExist(const char *path);
|
|
void fsop_MakeFolder(const char *path);
|
|
bool fsop_CopyFile(const char *source, const char *target, progress_callback_t spinner, void *spinner_data);
|
|
bool fsop_CopyFolder(const char *source, const char *target, progress_callback_t spinner, void *spinner_data);
|
|
void fsop_deleteFile(const char *source);
|
|
void fsop_deleteFolder(const char *source);
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |