Create parent directories as needed.
The newly created directory will be owned by the effective user ID of the process.
- Parameters
-
path | The path to the directory to create. |
mode | Specifies the permissions to use. It is modified by the process's umask in the usual way: the permissions of the created file are (mode & ~umask). |
- Returns
- 0 on success, < 0 on error with errno set:
- EACCES The parent directory does not allow write permission to the process, or one of the directories
- ENOTDIR if durl is not a directory
- EINVAL NULL durl passed or smbc_init not called.
- ENOMEM Insufficient memory was available.
- See also
- mkdir()