Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSClient.GetFileTime

TElSimpleFTPSClient     See also     


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


Returns file date and time.

Declaration

[C#]
    DateTime GetFileTime(string AFilename);

[VB.NET]
    Function GetFileTime(ByVal AFilename As String) As DateTime

[Pascal]
    function GetFileTime(const AFilename) : TDateTime;

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

[PHP]
    DateTime GetFileTime(string $AFilename)

[Java]
    Date getFileTime(String AFilename);

Parameters

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

Return value

    The date of the file as repored by the server.

Description

    Use this method to retrieve the file date. This method attempts to use MDTLM 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