0
    ChannelSftp sftpFrom = ...........;
    ChannelSftp sftpTo = ............;   

I'm using BufferedReader to read file from the first channel and then writing it line by line to the second channel. Is there any better way of copying file from one channel to another?

Is there any copy paste operation?

john
  • 647
  • 5
  • 23
  • 53
  • The accepted answer is yet another workaround no better than what i already have. It's a lot of "code yourself" effort – john Sep 05 '19 at 15:34
  • 1
    No actually that answer is better than my approach. apologies – john Sep 05 '19 at 15:55

0 Answers0