Imagine a public directory online, like this one: https://neo.sci.gsfc.nasa.gov/archive/rgb/MOD_LSTD_E/
This directory has a file put into it usually every 8 days. I would like to get the newest file whenever the sketch is run. Now I could simply check for a file added today, and then go backwards a day at a time for 8 days until I find something, but that technique is quite slow.
Does anyone know of a way to examine the creation dates of files in such a directory so that I might be able to find the newest one?
Thank you in advance!