Not to step out of Lucene world, but I would love to know the truth of
the matter on this...the first site that search brings up on google
seems to claim that was the behavior back at 1.2 or so and it is not the
case anymore.
The javadocs don't seem to mention it:
lastModified
public l
> > I have been using the Lucene 2.0 distro Index to index my
> > files, currently it indexes filepath and contents. I want
> > to index, lastModified() (Returns the time that the file
> > denoted by this abstract pathname was last
> > modified.), and file length, length().
> >
> > Can someone plea
> I have been using the Lucene 2.0 distro Index to index my files,
currently
> it indexes filepath and contents. I want to index, lastModified()
(Returns
> the time that the file denoted by this abstract pathname was last
> modified.), and file length, length().
>
> Can someone please show me how t
Ya gotta use google, man . This took about 15 seconds to find by googling
java file modification date
Get the "last modified" date from a file Simply use the lastModified()
method from a file object. but the return value is system dependent and
should only be used to compare with other values re