Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jcraft jsch channelSftp.put help

1000454Apr 2 2013 — edited Apr 2 2013
Hi everyone!

I'm using jsch to connect to sftp and upload/download some files.

Does anyone know if there is some way to add some extra flags when uploading a file over sftp, using JSCH library?

Until now, we did all the work by hand, typing a command into FTP client:

put local_file_path remote_file_path , 0 , 16 , 1080 , 900

Now I need this to be done programatically, by using Jsch and SFTP protocol.


I did manage to upload files with channelSftp.put() method, but I need this extra commands ( ,0,16,1080,900) in order to create a valid file on server.

Server is not windows or linux and does not have any famous file system.
It is rare OS and file system so it needs this extra flags...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2013
Added on Apr 2 2013
15 comments
6,016 views