On 11 Oct 2002 16:45:01 +0200, Stefan Bodewig wrote:
: On Wed, 09 Oct 2002, Jerome Lacoste <[EMAIL PROTECTED]> wrote:
:
: > copy identifies files are up to date while they aren't.
:
: Works on my machine (running Linux).
:
: Uhm, this here might be the problem on Windows:
:
: if (forceOverwrite ||
: (file.lastModified() > destFile.lastModified())) {
:
: does anybody know what File#lastModified returns for a file that
: doesn't exist at all? The javadocs say it is supposed to be 0L, but
: maybe this isn't true for all JDKs?
On Windows XP running Sun's jdk 1.4 I get:
F:\Eds\vSlick\Dfx\Macros>java Test
Non-existent file exists? false
Non-existent file last modified: 0
--
Mark Miesfeld
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>