jcraft jsch channelSftp.put help
1000454Apr 2 2013 — edited Apr 2 2013Hi 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...