mkrdir()
#
mkrdir()
creates a directory and all its parent directories if they do not exist, similar to the mkdir -p
command.
Prototype
int mkrdir(
const char *path,
int permission
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The directory path to be created. |
|
|
The permission mode for the created directories. |
Return Value
Returns 0
on success, or -1
if an error occurs.
Notes
If a directory in the path already exists, it is not modified. The function ensures that all parent directories are created as needed.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples