2015-01-17 11:11:08 +01:00
|
|
|
#ifndef _FILEOPS
|
|
|
|
#define _FILEOPS
|
|
|
|
|
|
|
|
bool fsop_GetFileSizeBytes (char *path, size_t *filesize); // for me stats st_size report always 0 :(
|
|
|
|
bool fsop_FileExist (char *fn);
|
|
|
|
bool fsop_DirExist (char *path);
|
|
|
|
bool fsop_CopyFile (char *source, char *target);
|
|
|
|
bool fsop_MakeFolder (char *path);
|
|
|
|
bool fsop_CopyFolder (char *source, char *target);
|
|
|
|
bool fsop_CreateFolderTree (char *path);
|
2017-01-15 10:56:47 +01:00
|
|
|
void fsop_deleteFolder (char *source);
|
|
|
|
//added from Postloader
|
|
|
|
int fsop_CountFolderTree (char *path);
|
|
|
|
u8 *fsop_ReadFile (char *path, size_t bytes2read, size_t *bytesReaded);
|
|
|
|
bool fsop_WriteFile (char *path, u8 *buff, size_t len);
|
2015-01-17 11:11:08 +01:00
|
|
|
|
2017-01-15 10:56:47 +01:00
|
|
|
u32 fsop_GetFolderKb (char *source);
|
|
|
|
u64 fsop_GetFolderBytes (char *source);
|
|
|
|
u32 fsop_GetFreeSpaceKb (char *path);
|
2015-01-17 11:11:08 +01:00
|
|
|
|
|
|
|
#endif
|