wodFTPServer ActiveX Control - FilesDownload Property
      
 

Description

Holds total number of files user downloaded.


Property type

A Long value.  


Syntax

object.FilesDownload [= value]



The FilesDownload Property syntax has these parts:

Part Description
object An expression evaluating to an object of type FtpUser.
value A Long value.

Remarks

FilesDownload property holds total number of files user successfully downloaded in this session - as soon as he reconnects, this property will be reset.

This property is increased just before TransferComplete event is fired, and only if file transfer is successful. If you want it to be increased also when transfer is unsuccessful, you can do something like this from inside TransferComplete event:

Private Sub FtpD_TransferComplete(ByVal User As wodFTPDComLib.IFtpUser, ByVal Successful As Boolean)
      If Not Successful Then
             If User.State = Downloading Then User.FilesDownload = User.FilesDownload + 1
             If User.State = Uploading Then User.FilesUpload = User.FilesUpload + 1
      End If
End Sub