Transferring a directory |
Once you have established a connection to the source and destination FTP servers you may transfer an entire directory recursively using the Fxp#transferDir method. If you wish to change the source or destination directory you can do so using the Ftp#setDir method for the desired Ftp instance prior to invoking the Fxp#transferDir method.
Example
// set source directory of Ftp instance source.setDir("/src");
// set destination directory of Ftp instance destination.setDir("/dest");
// create new Fxp instance Fxp fxp = new Fxp();
// transfer directory "images" from source to destination fxp.transferDir(source,destination,"images");
See also
|