Method. Changes the current working directory on the local machine. This method is valid only after an FTP login is successful. If the FTP session is disconnected, then reconnected, the local directory must be set again. This method is useful when transferring multiple files using the ftpSendFiles and ftpReceiveFiles methods, which transfer multiple files to and from the current local and server working directories.
public void ftpLCd(String dir)