Neos\Flow\ResourceManagement\Streams\StreamWrapperInterface::makeDirectory PHP Метод

makeDirectory() публичный Метод

This method is called in response to mkdir(). Note: If the wrapper does not support creating directories it must throw a \BadMethodCallException.
public makeDirectory ( string $path, integer $mode, integer $options ) : boolean
$path string Directory which should be created.
$mode integer The value passed to mkdir().
$options integer A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.
Результат boolean TRUE on success or FALSE on failure.
    public function makeDirectory($path, $mode, $options);

Usage Example

 /**
  * Create a directory.
  *
  * 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.
  *
  * @param string $path Directory which should be created.
  * @param integer $mode The value passed to mkdir().
  * @param integer $options A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.
  * @return boolean TRUE on success or FALSE on failure.
  */
 public function mkdir($path, $mode, $options)
 {
     $this->createStreamWrapper($path);
     return $this->streamWrapper->makeDirectory($path, $mode, $options);
 }