Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSClient.GetFileSize

TElSimpleFTPSClient     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Returns the size of the file.

Declaration

[C#/Java]
    long GetFileSize(string AFilename);

[VB.NET]
    Function GetFileSize(ByVal AFilename As String) As Int64

[Pascal]
    function GetFileSize(const AFilename) : Int64;

[C++]
    int64_t GetFileSize(const std::string &AFilename);

[PHP]
    integer GetFileSize(string $AFilename)

Parameters

  • AFileName - the name of the file to get information about

Return value

    The size of the file in bytes.

Description

    Use this method to retrieve the file size. This method attempts to use SIZE and MLST commands if available, otherwise reverts to LIST command.

    General rule is that you specify only the name of the file, which should reside in current directory. If you need to check the file with path, change the directory using CWD command before calling this method. Behavior of the method in case when AFilename contains a path is undefined (server-dependent).

See also:     GetFileList     ListDirectory    

Discuss this help topic in SecureBlackbox Forum