Create any directories in the specified path that do not exist.
Synopses
Declared in <bdls_filesystemutil.h>
Create any directories in the specified path that do not exist.
static
int
createDirectories(
char const* path,
bool isLeafDirectoryFlag = false);
Create any directories in the specified path that do not exist.
template<class STRING_TYPE>
static
int
createDirectories(
STRING_TYPE const& path,
bool isLeafDirectoryFlag = false);
Return Value
0 on success, k_ERROR_PATH_NOT_FOUND if a path component exists but is not a directory, and a negative value otherwise
Parameters
Name |
Description |
path |
filesystem path whose missing directories are created |
isLeafDirectoryFlag |
whether to treat the final component as a directory and create it |
Created with MrDocs