+1 vote

Can you advise how to delete files on the FTP site older than a week?
I can see how to delete but not control the age?
I am using VB.net


1 Answer

0 votes
Best answer

Try using Ftp.GetList() method. It returns List of FtpItems, each file should have FtpItem.ModifyDate property filled

If you are controlling how your files are named, you may consider using date/time in their names e.g. 20171010235959Members.csv

That marks the file explicitly with certain date and makes many things much easier.

by (298k points)