/** * Remove a directory if it exists. * * @param string $dirName The full path of the directory to remove * @param boolean $recursive Should I remove its contents recursively? Otherwise it will fail if the directory * is not empty. * * @return mixed */ public function rmdir($dirName, $recursive = true) { $ret = $this->fileAdapter->rmdir($dirName, $recursive); if (!$ret && is_object($this->abstractionAdapter)) { return $this->abstractionAdapter->rmdir($dirName, $recursive); } return $ret; }