Le discussioni inerenti Java, vengono trattate nel forum... Java.
Sposto.

La documentazione relativa alla rinomina (@Alex: quella è la delete ) non è garantito essere atomica, in quanto platform-dependent:

Many aspects of the behavior of this method are inherently platform-dependent: The rename operation might not be able to move a file from one filesystem to another, it might not be atomic, and it might not succeed if a file with the destination abstract pathname already exists
Non conosco a fondo l'implementazione di rinomina file di Linux, ma mi pare di ricordare che lo standard POSIX (a cui Linux aderisce) garantisca ciò, ma prendila con le pinze.


Ciao.