diff --git a/src/org/kde/kdeconnect/Plugins/SftpPlugin/AndroidSafSshFile.java b/src/org/kde/kdeconnect/Plugins/SftpPlugin/AndroidSafSshFile.java index f446039b..27f406af 100644 --- a/src/org/kde/kdeconnect/Plugins/SftpPlugin/AndroidSafSshFile.java +++ b/src/org/kde/kdeconnect/Plugins/SftpPlugin/AndroidSafSshFile.java @@ -189,6 +189,10 @@ public class AndroidSafSshFile implements SshFile { if (uri != null) { documentInfo = new DocumentInfo(fileSystemView.context, uri); + if (!name.equals(documentInfo.displayName)) { + delete(); + return false; + } } } catch (FileNotFoundException ignored) {}