Deleting files on ftp site, with zero size - WeOnlyDo Discussion board

Deleting files on ftp site, with zero size (wodFtpDLX / wodFtpDLX.NET)

by wodSupport, Friday, January 31, 2014, 20:58 (1696 days ago) @ scots

I think you cannot use our internal functions for automation. What I think you could od is do a ListDir, and then, when you have all the information about files and their sizes, put ones you want to download in some local collection. And then

while (collection.size > 0)
ftp1.deletefile collection[0]
collection.erase(0)
end while

so, as long as there are elements (ones you put there, by your decisions) delete them.

That's one of possible ideas.

Kreso


Complete thread: