Discuss this help topic in SecureBlackbox Forum


TElSimpleFTPSClient     See also     

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

Returns the size of the file.


    long GetFileSize(string AFilename);

    Function GetFileSize(ByVal AFilename As String) As Long

    function GetFileSize(const AFilename) : Int64;

    int64_t GetFileSize(const std::string &AFilename);

    integer GetFileSize(string $AFilename)

    long getFileSize(String AFilename);


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

Return value

    The size of the file in bytes.


    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