src/storage/BaseFileSystemStorage.php
public function addFolder($folderName, $parentFolderId = 0)
    {
        $model = new StorageFolder();
        $model->name = $folderName;
        $model->parent_id = $parentFolderId;
        $model->timestamp_create = time();
        $this->deleteHasCache(self::CACHE_KEY_FOLDER);
        if ($model->save(false)) {
            return $model->id;
        }

        return false;
    }
public function addFolder($folderName, $parentFolderId = 0)
    {
        $model = new StorageFolder();
        $model->name = $folderName;
        $model->parent_id = $parentFolderId;
        $model->timestamp_create = time();
        $this->deleteHasCache(self::CACHE_KEY_FOLDER);
        if ($model->save(false)) {
            return $model->id;
        }

        return false;
    }
public function addFolder ( $ folderName , $ parentFolderId = 0 ) { $ model = new StorageFolder ( ) ; $ model -> name = $ folderName ; $ model -> parent_id = $ parentFolderId ; $ model -> timestamp_create = time ( ) ; $ this -> deleteHasCache ( self :: CACHE_KEY_FOLDER ) ; if ( $ model -> save ( false ) ) { return $ model -> id ; } return false ; }
Add new folder to the storage system.

@param string $folderName The name of the new folder
@param integer $parentFolderId If its a subfolder the id of the parent folder must be provided.
@return boolean|integer Returns the folder id or false if something went wrong.
Add new folder to the storage system .