Page 1 of 1

Find 'count of older files' in a folder?

PostPosted: Fri Jun 27, 2025 3:04 pm
by tekguru
Guys is it possible to get the number of files in a folder? Specifically, I want to retain the latest xx number of files that I keep as backups in a folder and delete the older ones?
I know it must be possible (I think) but I can't find such an option...
Thanks for any help in advance.

Re: Find 'count of older files' in a folder?

PostPosted: Mon Jun 30, 2025 9:05 am
by Mr_Noodle
You can use a condition like "Date is not among the X most recent" to match files outside of the X most recent files, based on whatever date attribute you want to use.

Re: Find 'count of older files' in a folder?

PostPosted: Mon Jun 30, 2025 10:11 am
by tekguru
Ah ha, thanks I'll give that a try!

Is it best to use 'Date Created' or 'Date Last Modified'?

Re: Find 'count of older files' in a folder?

PostPosted: Tue Jul 01, 2025 9:33 am
by Mr_Noodle
That really depends on your needs. Look at the dates in Finder and see which one makes more sense.

Re: Find 'count of older files' in a folder?

PostPosted: Tue Jul 01, 2025 10:27 am
by tekguru
Okay will do :)