views:

131

answers:

2

Possible Duplicate:
How to retrieve a list of directories QUICKLY in Java?

Java does not have a listDirectories/listFiles method, in order to find out your set of directories or files, you have to iterate through each one and call isDirectory. This proves to be a huge performance problem for us in the unix platform. Is there a native library with those fucntions implemented?

Thanks

A: 

this may help.

prateek urmaliya
For duplicates, nominate the question for closure (or post a comment on the question if you don't have enough reputation).
erickson
@erickson noted thanks for tip
prateek urmaliya
A: 

Take a look at JNA for simple access to the native routine of your choosing.

Duncan McGregor