in reply to Fast file and directory operations

I can't find the difference between opendir and readdir, and just using chdir and doing a foreach loop
Try using a while loop with readdir.

Update: I may have misread. I thought you were saying you used a foreach with readdir. See opendir slower than ls on large dirs?.


Caution: Contents may have been coded under pressure.