php8.5
Home/ Manual/ stream / streamwrapper/ streamWrapper::mkdir

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

path

Directory which should be created.

mode

The value passed to mkdir().

options

A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.

Return Values

Success

Errors/Exceptions Warning

Notes Context

See Also

Source: reference/stream/streamwrapper/mkdir.xml · from the official PHP manual (php/doc-en)