This file provides file manipulation functions.
More...
◆ file_getsize()
uint32_t file_getsize |
( |
void * |
fd | ) |
|
Function to get the device file size.
- Parameters
-
- Returns
- size of file in bytes
◆ file_exists()
bool file_exists |
( |
const char * |
filename | ) |
|
Returns true if the given file exists on disk and false if not
- Parameters
-
filename | Name and path of the file to test for existence |
- Returns
- true or false
◆ dir_exists()
bool dir_exists |
( |
const char * |
dirname | ) |
|
Returns true if the given directory exists on disk and false if not
- Parameters
-
dirname | Name and path of the directory to test for existence |
- Returns
- true or false