/** * @param Tx_Yag_Domain_Model_Album $album */ public function removeAlbumDirectory(Tx_Yag_Domain_Model_Album $album) { $albumPath = $this->getOrigFileDirectoryPathForAlbum($album); Tx_Yag_Domain_FileSystem_Div::rRMDir($albumPath); }
/** * Clear the whole resolutionFileCache * - Truncate the cache table * - Remove alle files from the cache directory */ public function clear() { $GLOBALS['TYPO3_DB']->sql_query('TRUNCATE tx_yag_domain_model_resolutionfilecache'); $cacheDirectoryRoot = $this->configurationBuilder->buildExtensionConfiguration()->getHashFilesystemRootAbsolute(); Tx_Yag_Domain_FileSystem_Div::rRMDir($cacheDirectoryRoot); }