NET SFTP Library
KiloBytesSkipped Property
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : KiloBytesSkipped Property
When synchronizing, or when not overwriting files, this is the current number of bytes that didn't need to be transferred.
Syntax
'Declaration
 
Public ReadOnly Property KiloBytesSkipped As System.Long
'Usage
 
Dim instance As SFTP
Dim value As System.Long
 
value = instance.KiloBytesSkipped
public System.long KiloBytesSkipped {get;}
public read-only property KiloBytesSkipped: System.Int64; 
public function get KiloBytesSkipped : System.long
public: __property System.long get_KiloBytesSkipped();
public:
property System.int64 KiloBytesSkipped {
   System.int64 get();
}
Example
SFTP sftp = new SFTP(); //Trial Mode            
//SFTP sftp = new SFTP("place user name here", "place license key here");
 
// set the name of the SSH server( its URL )
sftp.HostAddress = "some.sftp.server.com"; // replace with your SFTP server
sftp.UserName  = "anonymous"; // replace with your user name
sftp.Password = "user@mail.com"; // replace with your password
 
sftp.OverwriteFiles = false; //The default is true
sftp.OverwriteReadOnlyFiles = false; //The default is false
sftp.SynchronizeDownload("C://Downloads", "TestDir");
 
//if a.txt exists on both folders its size will show up in the KiloBytesSkipped property
 
//When synchronizing, or when not overwriting files,
//this is the current number of bytes that didn't need to be transferred 
System.Console.WriteLine("The FTP component did not have to transfer {0}(KB)", sftp.KiloBytesSkipped);
Dim sftp As SFTP = New SFTP() 'Trial Mode
'Dim sftp As SFTP = New SFTP("place user name here", "place license key here");
 
' set the name of the SSH server( its URL )
sftp.HostAddress = "some.sftp.server.com" ' replace with your SFTP server
sftp.UserName  = "anonymous" ' replace with your user name
sftp.Password = "user@mail.com" ' replace with your password
 
sftp.OverwriteFiles = False 'The default is true
sftp.OverwriteReadOnlyFiles = False 'The default is false
sftp.SynchronizeDownload("C://Downloads", "TestDir")
 
'if a.txt exists on both folders its size will show up in the KiloBytesSkipped property
 
'When synchronizing, or when not overwriting files,
'this is the current number of bytes that didn't need to be transferred 
System.Console.WriteLine("The FTP component did not have to transfer {0}(KB)", sftp.KiloBytesSkipped)
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

SFTP Class
SFTP Members