Fix for sftp random access
The sftp-server implementation in KDE Connect-Android does not support random access. To be more specific, it does not support seek+read and seek+write.
Backgroud: The mina-sshd 0.14 requires the InputStream and OutputStream to support offsets.
However, kdeconnect-anrdoid ignores that.
This patch:
- Support random reads by adding
skip()
to createInputStream - Disable random writes by throwing exception when offset in createOutputStream is not zero
Edited by Patrick Wang