How to delete files older than x days with directories

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

How to delete files older than x days with directories

Post by shalu » Wed Jul 15, 2015 7:43 am

Hi,

I am beginner in Livecode, I am looking for the code of delete files older than x days :oops: :roll:
--
Thanks
Shalu S

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to delete files older than x days with directories

Post by Klaus » Wed Jul 15, 2015 12:12 pm

Hi shalu,

ok, the first part is easy:
...
delete file "path/to/file.file"
...
For getting the date of files, check "files" (long | detailed files) in the dictionary!


Best

Klaus

Post Reply