mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 02:45:31 +01:00
Copy/delete instead of rename files
This commit is contained in:
@@ -592,8 +592,8 @@ public class EntityMessage implements Serializable {
|
||||
try {
|
||||
long id = Long.parseLong(file.getName());
|
||||
File target = getFile(context, id);
|
||||
if (!file.renameTo(target))
|
||||
throw new IllegalArgumentException("Failed renaming to " + target);
|
||||
Helper.copy(file, target);
|
||||
file.delete();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user