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:
parent
d950266431
commit
c7a4f76f2b
@ -189,6 +189,10 @@ public class AndroidSafSshFile implements SshFile {
|
|||||||
|
|
||||||
if (uri != null) {
|
if (uri != null) {
|
||||||
documentInfo = new DocumentInfo(fileSystemView.context, uri);
|
documentInfo = new DocumentInfo(fileSystemView.context, uri);
|
||||||
|
if (!name.equals(documentInfo.displayName)) {
|
||||||
|
delete();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException ignored) {}
|
} catch (FileNotFoundException ignored) {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user