createDir() public method

Create dir
public createDir ( string $key ) : void
$key string
return void
Beispiel #1
0
 /**
  * Create folder
  *
  * @param string $name
  * @return void
  * @throws InvalidArgumentException
  */
 public function createFolder($name)
 {
     try {
         $this->storage->createDir($name);
     } catch (\InvalidArgumentException $e) {
         throw new \InvalidArgumentException(sprintf('A file or folder having the name %s already exists', $name), $e->getCode(), $e);
     }
 }