Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Detecting Existing Folders
wrlucas

From: Gardner, KS USA
Posts: 58
Member Since: 02/13/02
posted April 12, 2003 3:29 PM

Before I FTP files, I want to detect whether the destination folder exists; if it does not, I want to create it.

If it does exists, I want to delete it (it will contain subfolders and those folders will contain files). RemoveDirectory errors on non-empty folders.

How can I do this?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 14, 2003 9:41 AM

Hi,
You can use the List method to discover what directories and files are on the server, and then make the necessary Delete and RemoveDirectory calls.
-ken
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX