How to sort files entirely by date

findersort

Is there any way to sort all files in a particular directory by date, even ones in subfolders? For example:

drive root -> documents -> mysite -> dev

Drive root contains a bunch of individual files, plus a folder called documents. Documents contains a bunch of files, plus a folder called mysite, and so on. What I want to see is just a list of files sorted by date, from all the folders, rather than having to open each folder separately and seeing only its files sorted by date.

I have Cocoatech's Pathfinder installed, so if it isn't possible in the standard Finder, maybe there's some way to do it in PF?

(If the folder tree were really as simple as my example, it wouldn't be an issue, but what I'm really looking at is a website's build directory, which contains about 5 levels of subdirectories, and I need to see all files sorted by date so that I can move whatever changed today (regardless of which folder it's in.)

Best Answer

If you don't mind using the terminal you could try this:

find . -type f -exec ls -lth {} +

This will list files from current directory and all directories below, sorted by modified date. A variant not listing modification date would be:

find . -type f -exec ls -t {} +

But I believe that it would be better to just list the files that have changed the last 1440 minutes

find . -mmin -1440