Hi All,
I've got a program that has to trawl through a directory with many (I MEAN many) files - it's a maildir of about 6GB on an NFS mount on a solaris 8 box.
What are the limits with opendir and readdir in this context? I'm trawling thorugh it deleting files older than a couple of weeks.
The process takes a large amount of time and using top it seems to be in a sleep state - is it just reading the directory?
Any advice? Is this better written in C?
Thanks for your help, rotis23
I've got a program that has to trawl through a directory with many (I MEAN many) files - it's a maildir of about 6GB on an NFS mount on a solaris 8 box.
What are the limits with opendir and readdir in this context? I'm trawling thorugh it deleting files older than a couple of weeks.
The process takes a large amount of time and using top it seems to be in a sleep state - is it just reading the directory?
Any advice? Is this better written in C?
Thanks for your help, rotis23