I have a a lot of files in various different directories (possibly up to 50,000 or more) and given the directory name I need to be able to find the oldest file (created) in that particular directory, so that it can be returned via http or deleted, depending on the request. I was wondering what the quickest way to do this was, as time is of the essence when finding the correct file
Any helpful comments appreciated. This needs to work on both apache on linux, and iis on windows. (Not sure of the versions yet).