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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user