2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 05:37:43 +00:00

If Android creates a different filename than requested delete the newly created file and return false

This commit is contained in:
Erik Duisters 2019-05-01 11:17:29 +00:00
parent d950266431
commit c7a4f76f2b

View File

@ -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) {}