core-bundle/src/Resources/contao/library/Contao/Files.php
public function rmdir($strDirectory)
	{
		$this->validate($strDirectory);

		if (!file_exists($this->strRootDir . '/' . $strDirectory))
		{
			return true;
		}

		return rmdir($this->strRootDir. '/' . $strDirectory);
	}
public function rmdir($strDirectory)
	{
		$this->validate($strDirectory);

		if (!file_exists($this->strRootDir . '/' . $strDirectory))
		{
			return true;
		}

		return rmdir($this->strRootDir. '/' . $strDirectory);
	}
Remove a directory

@param string $strDirectory The directory name

@return boolean True if the operation was successful