Transferring multiple files

Top  Previous  Next

Once you have established a connection to the source and destination FTP servers you may transfer multiple files matching a filter using the Fxp#mtransfer 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#mtransfer 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 files ending with .gif extension from source to destination

fxp.mtransfer(source,destination,".*\\.gif");

 

See also

 

Establishing a connection

Transferring a file

 

 

 





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC