public function createDummyFolder($folderName)
    {
        $this->createDummyUploadFolder();
        $uniqueFolderName = $this->getUniqueFileOrFolderPath($folderName);

        if (!GeneralUtility::mkdir($uniqueFolderName)) {
            throw new Exception('The folder ' . $uniqueFolderName . ' could not be created.', 1334439333);
        }

        $relativeUniqueFolderName = $this->getPathRelativeToUploadDirectory($uniqueFolderName);

        // Adds the created dummy folder to the top of $this->dummyFolders so
        // it gets deleted before previously created folders through
        // $this->cleanUpFolders(). This is needed for nested dummy folders.
        $this->dummyFolders = [$relativeUniqueFolderName => $relativeUniqueFolderName] + $this->dummyFolders;

        return $uniqueFolderName;
    }
public function createDummyFolder($folderName)
    {
        $this->createDummyUploadFolder();
        $uniqueFolderName = $this->getUniqueFileOrFolderPath($folderName);

        if (!GeneralUtility::mkdir($uniqueFolderName)) {
            throw new Exception('The folder ' . $uniqueFolderName . ' could not be created.', 1334439333);
        }

        $relativeUniqueFolderName = $this->getPathRelativeToUploadDirectory($uniqueFolderName);

        // Adds the created dummy folder to the top of $this->dummyFolders so
        // it gets deleted before previously created folders through
        // $this->cleanUpFolders(). This is needed for nested dummy folders.
        $this->dummyFolders = [$relativeUniqueFolderName => $relativeUniqueFolderName] + $this->dummyFolders;

        return $uniqueFolderName;
    }
public function createDummyFolder ( $ folderName ) { $ this -> createDummyUploadFolder ( ) ; $ uniqueFolderName = $ this -> getUniqueFileOrFolderPath ( $ folderName ) ; if ( ! GeneralUtility :: mkdir ( $ uniqueFolderName ) ) { throw new Exception ( 'The folder ' . $ uniqueFolderName . ' could not be created.' , 1334439333 ) ; } $ relativeUniqueFolderName = $ this -> getPathRelativeToUploadDirectory ( $ uniqueFolderName ) ; // Adds the created dummy folder to the top of $this->dummyFolders so // it gets deleted before previously created folders through // $this->cleanUpFolders(). This is needed for nested dummy folders. $ this -> dummyFolders = [ $ relativeUniqueFolderName => $ relativeUniqueFolderName ] + $ this -> dummyFolders ; return $ uniqueFolderName ; }
Creates a dummy folder with a unique folder name in the calling
extension's upload directory.

@param string $folderName
name of the dummy folder to create relative to
$this->uploadFolderPath, must not be empty

@return string
the absolute path of the created dummy folder, will not be empty

@throws Exception
Creates a dummy folder with a unique folder name in the calling extension s upload directory .