Both, glob and readdir will end up calling the same underlying C function, so the only way to actually avoid reading a large directory would be to introduce a processed/ folder where you move all folders that have already been processed.
In reply to Re: smart glob of dated subfolders
by Corion
in thread smart glob of dated subfolders
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |