I'm having serious trouble with iterating over file list as returned from FileConnection.list() on my N6230i. The midlet is signed and granted file read permission.

The "do-nothing-useful" iteration just takes incredibly long time.

for (Enumeration e = fc.list("*.png", false); e.hasMoreElements(); ) {
String entry = e.nextElement().toString();

For a directory with 25 PNG files it takes 2 secs, which is a bit dissapointing, but something that can be lived with, but for a directory contaiting 400 PNG files it takes 160 secs!

Anyone have similar experience? Am I doing something wrong?

Thank you,