Code like map {(stat $_)[9]} readdir($handle) takes up to 2-3 seconds, because there are up to tens thousands files in some folders.
I guess there is some index by mdate in file system, so it is possible to fetch 20 last modified files efficiently.
How to do so?
(I need to run script on various Windows servers, no UNIX. So my guess is to use some WINAPI calls?)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |