Setting your remote directory |
Your remote directory is the directory on the server from which all files will be uploaded to or downloaded from when communicating with the server and may be set using the Ftp#setDir method. If you do not define the remote directory then the remote directory will default to the directory provided upon successful login to the server.
Example
// set remote directory ftp.setDir("/home/users/jsmith"); |