commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <>
Subject Re: [io] Help with testing on Unix - FileSystemUtils returns incorrect free space on Linux
Date Mon, 06 Mar 2006 05:14:40 GMT
On 3/6/06, Phil Steitz <> wrote:
> and the tests pass.  Could be I am missing something or there is
> something funny going on with the .lastModified impl.

I found on w2k the last modified was being rounded up to the nearest
second. Looks like on your platform its being rounded down. According
to the javadoc for the setLastModified() method "all
platforms support file-modification times to the nearest second, but
some provide more precision".

So looks like my patch only partially fixed the issue - and your
solution to add a second ensures that the files created are correctly
sequenced wrt to age regardless of the impl.

Anyway, sorry for the noise - I only just noticed that Stephen and
Sandy had already conspired to fix this - I thought it was still an
ongoing issue.


> Phil

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message