public function isDir($dir)
	{
		$current = $this->pwd();
		try {
			$this->chdir($dir);
		} catch (FtpException $e) {
		}
		$this->chdir($current);
		return empty($e);
	}
public function isDir($dir)
	{
		$current = $this->pwd();
		try {
			$this->chdir($dir);
		} catch (FtpException $e) {
		}
		$this->chdir($current);
		return empty($e);
	}
public function isDir ( $ dir ) { $ current = $ this -> pwd ( ) ; try { $ this -> chdir ( $ dir ) ; } catch ( FtpException $ e ) { } $ this -> chdir ( $ current ) ; return empty ( $ e ) ; }
Checks if directory exists.
@param  string
@return bool
Checks if directory exists .