Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

April 12, 2006

FTP File Exists Function?

Question:
How do you determine if a remote file on an FTP server exists?

Answer:
Set the ftp.ListPattern property equal to the filename without wildcard characters, and then check the ftp.NumFilesAndDirs. If NumFilesAndDirs is 0, the file does not exist. If it is 1, it exists.
Here is an example in C#: FTP File Exists Example


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.