Sign in | Join
Last post 07-05-2008 7:35 AM by itsumapathyk. 2 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi! I search all over and cant find a solution to how to check if directory exist on ftp server before creating one. Thanks a lot!
The links below don't actually answer your question but they might help.
You could also try creating a dummy file in the directory that you want to know if it exists. Trap for the error in case the directory doesn't exist. If you trap the error create the directory and continue processing. If you don't get an error, delete the file and continue processing. Good Luck!
http://msdn.microsoft.com/en-us/library/ms178116.aspx?wt.slv=ColumnA
http://msdn.microsoft.com/en-us/library/aa711203(VS.71).aspx
Best Regards,
Al
try these links
http://www.example-code.com/vbdotnet/ftpDirectoryExists.asp
http://www.codeproject.com/KB/IP/ftplib.aspx
http://www.example-code.com/csharp/ftp_fileExists.asp