FTP - delete all files in a FTP Server directory
Posted: Sun Aug 31, 2014 1:09 pm
Hello,
I'm looking for some code that deletes all files in a directory on a FTP server.
I already can connect to a FTP server and change to a directory there.
But now I need to delete all files in the current FTP directory.
With DeleteFTPFile() I can delete a single file.. so I guess that I must enumerate all files in the current FTP folder and delete each file?
Thanks
I'm looking for some code that deletes all files in a directory on a FTP server.
I already can connect to a FTP server and change to a directory there.
But now I need to delete all files in the current FTP directory.
With DeleteFTPFile() I can delete a single file.. so I guess that I must enumerate all files in the current FTP folder and delete each file?
Thanks