ftpPwd()

Method. Returns the current working directory on the FTP server. This method is useful when you are sending and receiving multiple files.

public String ftpPwd()