lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hasan Diwan" <hasan.di...@gmail.com>
Subject Re: Index Stat Functions
Date Sun, 27 Aug 2006 06:27:16 GMT
On 25/08/06, Mag Gam <magawake@gmail.com> wrote:
> 1) When it was created
> 2) Size in MB of the index
> 3) If I can get the size, date of each file in the index. For example: I
> index 100 files, is it possible for me to get their name, size, and date
> when the last modification of that file (similar to a unix "ls -la
> /path/to/file)

You can get all this using the stat() system call. There's a sample of
designing a JNI wrapper at
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniexamp.html.
-- 
Cheers,
Hasan Diwan <hasan.diwan@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message