NET FTP Library
SkippedFiles Property
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : SkippedFiles Property
When synchronizing, or when not overwriting files, this is the current number of files that didn't need to be transferred.
Syntax
'Declaration
 
Public Overridable Property SkippedFiles As System.Integer
'Usage
 
Dim instance As FTP
Dim value As System.Integer
 
instance.SkippedFiles = value
 
value = instance.SkippedFiles
public virtual System.int SkippedFiles {get; set;}
public read-write property SkippedFiles: System.Integer; virtual; 
public function get,set SkippedFiles : System.int
public: __property virtual System.int get_SkippedFiles();
public: __property virtual void set_SkippedFiles( 
   System.int value
);
public:
virtual property System.int SkippedFiles {
   System.int get();
   void set (    System.int value);
}
Example
FTP ftp = new FTP(); //Trial Mode            
//FTP ftp = new FTP("place user name here", "place license key here");
 
// set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu"; // a hungarian university. change this to your ftp server
ftp.UserName = "anonymous"; // replace with your user name
ftp.Password = "user@mail.com"; // replace with your password
 
ftp.OverwriteFiles = false; //The default is true
ftp.OverwriteReadOnlyFiles = false; //The default is false
ftp.SynchronizeDownload("C:\\Download", "TestDir");
 
//if a.txt exists on both folders and if its the same file, there will be no need to
// transfer it
 
// When synchronizing, or when not overwriting files, 
//  this is the current number of files that didn't need to be transferred 
System.Console.WriteLine("The FTP component did not have to transfer {0} files", ftp.SkippedFiles);
Dim ftp As FTP = New FTP() 'Trial Mode
'FTP ftp = new FTP("place user name here", "place license key here");
 
' set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu" ' a hungarian university. change this to your ftp server
ftp.UserName = "anonymous" ' replace with your user name
ftp.Password = "user@mail.com" ' replace with your password
 
ftp.OverwriteFiles = False 'The default is true
ftp.OverwriteReadOnlyFiles = False 'The default is false
ftp.SynchronizeDownload("C:\\Download", "TestDir")
 
'if a.txt exists on both folders and if its the same file, there will be no need to
' transfer it
 
' When synchronizing, or when not overwriting files, 
'  this is the current number of files that didn't need to be transferred 
System.Console.WriteLine("The FTP component did not have to transfer {0} files", ftp.SkippedFiles)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FTP Class
FTP Members