DMCP interface
03.15_020
|
Filesystem functions. More...
Functions | |
int | check_create_dir (const char *dir) |
Creates directory if doesn't exist. More... | |
int | file_exists (const char *fn) |
Check whether file exists. More... | |
int | file_size (const char *fn) |
Returns file size. More... | |
void | make_date_filename (char *fn, const char *dir, const char *ext) |
Creates filename using current date/time. More... | |
Filesystem functions.
int check_create_dir | ( | const char * | dir | ) |
Creates directory if doesn't exist.
dir | Directory pathname |
int file_exists | ( | const char * | fn | ) |
Check whether file exists.
fn | File pathname |
int file_size | ( | const char * | fn | ) |
Returns file size.
fn | File pathname |
void make_date_filename | ( | char * | fn, |
const char * | dir, | ||
const char * | ext | ||
) |
Creates filename using current date/time.
[out] | fn | String buffer for created filename |
dir | File directory | |
ext | File extension |
Created string has following format:
/<dir>/YYYYMMDD-hhmmsscc<ext>
i.e. <ext> has to contain dot if required