I have /tmp and /home on different partitions. When trying to move a file from /tmp to /home using File.renameTo() — it fails. Turns out one has to copy and delete the file himself, renameTo works only inside single partition.
[en] Java: File.renameTo() doesn’t work on Linux between partitions
Odpowiedz