Uploading files

Top  Previous  Next

To upload a file use one of the many Scp#upload methods.

 

Example

 

// local file to upload

File file = new File("c:/tmp/file.txt");

 

// upload file to specified remote directory

scp.upload(file,"/home/jsmith/");

 

 

Example

 

// local file to upload

File file = new File("c:/tmp/file.txt");

 

// upload file to specified remote directory with new name

scp.upload(file,"/home/jsmith/","file.txt.new");

 

 





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

© 2021 JSCAPE LLC