streamWrapper::mkdir

(PHP 5, PHP 7)

streamWrapper::mkdirCreate a directory

˵��

public 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.

����

path

Directory which should be created.

mode

The value passed to mkdir().

options

A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.

����ֵ

�ɹ�ʱ���� TRUE�� ������ʧ��ʱ���� FALSE��

�����쳣

���ô˷���ʧ�ܽ����� E_WARNING��δʵ�֣���

ע��

Note:

���Ϸ��������Ĵ��ݸ����ú���ʱ������ streamWrapper::$context �ᱻ�ı䡣

�μ�