public function createFolder($parentFolderPath, $folderName)
    {
        $this->throwIfOperationNotInBaseFolder($parentFolderPath);

        $folderPath = $parentFolderPath . '/' . $folderName;

        $wasCreationSuccessful = mkdir($folderPath, 0777, true);
        if (!$wasCreationSuccessful) {
            throw new IOException("Unable to create folder: $folderPath");
        }

        return $folderPath;
    }
public function createFolder($parentFolderPath, $folderName)
    {
        $this->throwIfOperationNotInBaseFolder($parentFolderPath);

        $folderPath = $parentFolderPath . '/' . $folderName;

        $wasCreationSuccessful = mkdir($folderPath, 0777, true);
        if (!$wasCreationSuccessful) {
            throw new IOException("Unable to create folder: $folderPath");
        }

        return $folderPath;
    }
public function createFolder ( $ parentFolderPath , $ folderName ) { $ this -> throwIfOperationNotInBaseFolder ( $ parentFolderPath ) ; $ folderPath = $ parentFolderPath . '/' . $ folderName ; $ wasCreationSuccessful = mkdir ( $ folderPath , 0777 , true ) ; if ( ! $ wasCreationSuccessful ) { throw new IOException ( "Unable to create folder: $folderPath" ) ; } return $ folderPath ; }
Creates an empty folder with the given name under the given parent folder.

@param string $parentFolderPath The parent folder path under which the folder is going to be created
@param string $folderName The name of the folder to create
@return string Path of the created folder
@throws \Box\Spout\Common\Exception\IOException If unable to create the folder or if the folder path is not inside of the base folder
Creates an empty folder with the given name under the given parent folder .