2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Disable sftp random writes

This commit is contained in:
Patrick Wang
2022-01-10 02:48:37 +08:00
parent 46e4ff291c
commit b3a3884333

View File

@@ -286,6 +286,9 @@ public class AndroidSafSshFile implements SshFile {
@Override
public OutputStream createOutputStream(final long offset) throws IOException {
if (offset != 0) {
throw new IOException("Seeking is not supported.");
}
return fileSystemView.context.getContentResolver().openOutputStream(documentInfo.uri);
}