[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lajug - File: lastModified



Never mind.  I found the problem.
 
Thanks, anyway.
 
-Jason
 
----- Original Message -----
Sent: Monday, February 25, 2002 5:25 PM
Subject: lajug - File: lastModified

Hello all:
 
How does one go about getting the last time a directory was modified?  I have tried the File method lastModified() but to no avail.  Here is the Date that I get when I try the following code:  
 
 
 
Wed Dec 31 19:00:00 EST 1969
 
 
 
[CODE]
 
File f = new File("C:\\SOME_DIRECTORY");
System.out.println(new Date(f.lastModified()).toString());
 
[CODE]
 
 
Thanks,
 
-Jason