May 11 2011

[en] Java: File.renameTo() doesn’t work on Linux between partitions

Napisał(a) Grzegorz o 4:50 w kategorii English, Informatyka, Krótkie, Porady

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.

Adres trackback | RSS komentarzy

Dodaj komentarz