Haven't had a good deal of luck with this problem. I'd like a script that, given a directory, returns the five most recently modified files (or fewer if there are less than five files in a directory).
Any solutions? I'm well aware of utils.readdir, how tables work, and how to get the time of creation of a file... What's really screwing me is sorting the files by date.
Any solutions? I'm well aware of utils.readdir, how tables work, and how to get the time of creation of a file... What's really screwing me is sorting the files by date.