original_string: 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);
  	}
code: 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);
  	}
code_tokens: 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 ) ; }
docstring: Return folder info
  
  @param  string   $hash  folder hash
  @param  bool     $hidden  return hidden file info
  @return array|false
  @author Dmitry (dio) Levashov
docstring_tokens: Return folder info