Do the operations in java.nio.files.Files sync or not?

Alan Bateman Alan.Bateman at oracle.com
Tue Aug 2 01:56:22 PDT 2011


Tim Fox wrote:
> :
>
> For example, the setAttribute method. Is the changed file meta data 
> synced to disk before the method returns or not? It's not mentioned in 
> the javadoc.
The API doesn't provide any guarantees on that.  Suggestions welcome but 
any wording needs to take account of custom providers that are unlikely 
to provide any guarantees.

-Alan.


More information about the nio-discuss mailing list