The tool should iterate through all files and sort them by their modification time (exactly like ls -t). Maybe that's mtime, maybe not: OS X does things a little differently. I think ls uses mtime.
Compare GetFileInfo file to stat -x file.
Hardcode to 10 results then add option handling to look at ARGV[0] (no flag, like head 10) for max number of results
-r/--recursive: Recursively show most recent files across all directories (after adding option handling)
The tool should iterate through all files and sort them by their modification time (exactly like
ls -t
). Maybe that'smtime
, maybe not: OS X does things a little differently. I thinkls
usesmtime
.Compare
GetFileInfo file
tostat -x file
.ARGV[0]
(no flag, likehead 10
) for max number of results-r
/--recursive
: Recursively show most recent files across all directories (after adding option handling)