I often download images, take screenhots, and save files that I am only going to use for a little until it can be discarded.
I want to create a folder which deletes the contents inside it every few days ad midnight to conserve space on my mac.
My original idea was to create a cron job to empty the folder at a specific time, but a problem exists.
My computer is a MacBook, and will not be powered on during the times that I want the files to disappear, this means I need these files to delete when I power the device back on (or wake from sleep) given the time has expired.
Any solution?