#include "mcore_i.h"#include "result.h"Go to the source code of this file.
Functions | |
| void | mkdir_r (const char *dir, mode_t mode) |
| mnemosyne_result_t | path2file (char *path, char **file) |
Definition in file files.h.
| void mkdir_r | ( | const char * | dir, | |
| mode_t | mode | |||
| ) |
Creates a directory with the given path. This will create directories to satisfy the full path if necessary.
e.g. mkdir_r("/a/b/c", S_IRWXU), supposing none of a b or c exists, will create a, then a/b, then a/b/c.
| dir | is the path of the directory to be created. This may be relative or absolute. | |
| mode | is a permission setting to fix on the new directory(s). e.g. S_IRWXU |
| mnemosyne_result_t path2file | ( | char * | path, | |
| char ** | file | |||
| ) |
Given a full path, finds the last component of it (which is the unqualified file name).
| path | is a path to a file, whether relative or not. This must not be NULL. | |
| file | is an output parameter, set to point to the beginning of the filename component of path. This must not be NULL. |
1.4.7