Commit c7a4f76f authored by Erik Duisters's avatar Erik Duisters

If Android creates a different filename than requested delete the newly...

If Android creates a different filename than requested delete the newly created file and return false
parent d9502664
......@@ -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) {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment