streamWrapper::mkdir
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Create a directory
Description
streamWrapper::mkdir(string $path, int $mode, int $options): bool
This method is called in response to mkdir().
Note
In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support creating directories.
Parameters
pathDirectory which should be created.
modeThe value passed to
mkdir().optionsA bitwise mask of values, such as
STREAM_MKDIR_RECURSIVE.
Return Values
Success
Errors/Exceptions Warning
Notes Context
See Also
mkdir()streamwrapper::rmdir