public function dir($hash, $resolveLink=false) {
		if (($dir = $this->file($hash)) == false) {
			return $this->setError(elFinder::ERROR_DIR_NOT_FOUND);
		}

		if ($resolveLink && !empty($dir['thash'])) {
			$dir = $this->file($dir['thash']);
		}
		
		return $dir && $dir['mime'] == 'directory' && empty($dir['hidden']) 
			? $dir 
			: $this->setError(elFinder::ERROR_NOT_DIR);
	}
public function dir($hash, $resolveLink=false) {
		if (($dir = $this->file($hash)) == false) {
			return $this->setError(elFinder::ERROR_DIR_NOT_FOUND);
		}

		if ($resolveLink && !empty($dir['thash'])) {
			$dir = $this->file($dir['thash']);
		}
		
		return $dir && $dir['mime'] == 'directory' && empty($dir['hidden']) 
			? $dir 
			: $this->setError(elFinder::ERROR_NOT_DIR);
	}
public function dir ( $ hash , $ resolveLink = false ) { if ( ( $ dir = $ this -> file ( $ hash ) ) == false ) { return $ this -> setError ( elFinder :: ERROR_DIR_NOT_FOUND ) ; } if ( $ resolveLink && ! empty ( $ dir [ 'thash' ] ) ) { $ dir = $ this -> file ( $ dir [ 'thash' ] ) ; } return $ dir && $ dir [ 'mime' ] == 'directory' && empty ( $ dir [ 'hidden' ] ) ? $ dir : $ this -> setError ( elFinder :: ERROR_NOT_DIR ) ; }
Return folder info

@param  string   $hash  folder hash
@param  bool     $hidden  return hidden file info
@return array|false
@author Dmitry (dio) Levashov
Return folder info