mwiede / jsch

fork of the popular jsch library
Other
718 stars 133 forks source link

how to write part of sftp file with ChannelSftp #527

Closed YinChunGuang closed 6 months ago

YinChunGuang commented 6 months ago

how to write part of sftp file with ChannelSftp

Can I use the method ChannelSftp.put( String dist ,Int mode, Monitor m,long offset ) by setting the Offset with a nagtive value to Rewrite part of a sftp file. Thank you ! @stsiano @chklauser @turbanoff

norrisjeremy commented 6 months ago

Hi @YinChunGuang,

Negative offsets are not legal for SSH_FXP_WRITE operations, since the offset is an unsigned integer value.

Thanks, Jeremy