Uploading directories

Top  Previous  Next

To upload a directory use one of the available Scp#uploadDir methods.

 

Example

 

// local directory to upload

File dir = new File("C:/tmp");

 

// upload directory to specified remote directory

scp.uploadDir(dir,"/home/jsmith/");

 

Example

 

// local directory to upload

File dir = new File("C:/tmp");

 

// upload directory to specified remote directory with new name

scp.uploadDir(dir,"/home/jsmith/","tmpnew");

 

 





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

© 2021 JSCAPE LLC