Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSClient.MLSD

TElSimpleFTPSClient     See also     


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


Provides list of files and subdirectories in the current directory.

Declaration

[C#/Java]
    void MLSD();
    void MLSD(TElStringList ResultList);
    void MLSD(ArrayList ResultList);
    void MLSD(string Path);
    void MLSD(string Path, TElStringList ResultList);
    void MLSD(string Path, ArrayList ResultList);

[VB.NET]
    Sub MLSD()
    Sub MLSD(ByVal ResultList As TElStringList)
    Sub MLSD(ByVal ResultList As ArrayList)
    Sub MLSD(ByVal Path As String)
    Sub MLSD(ByVal Path As String, ByVal ResultList As TElStringList)
    Sub MLSD(ByVal Path As String, ByVal ResultList As ArrayList)

[Pascal]
    procedure MLSD;
    procedure MLSD(ResultList: TStringList);
    procedure MLSD(ResultList: TList);
    procedure MLSD(const Path: string);
    procedure MLSD(const Path: string; ResultList: TStringList);
    procedure MLSD(const Path: string; ResultList: TList);

[C++]
    void MLSD();
    void MLSD(TElStringList &ResultList);
    void MLSD(TElStringList *ResultList);
    void MLSD(TList &ResultList);
    void MLSD(TList *ResultList);
    void MLSD(const std::string &Path);
    void MLSD(const std::string &Path, TElStringList &ResultList);
    void MLSD(const std::string &Path, TElStringList *ResultList);
    void MLSD(const std::string &Path, TList &ResultList);
    void MLSD(const std::string &Path, TList *ResultList);

[PHP]
    void MLSD()
    void MLSD(TElStringList $ResultList)
    void MLSD(TList $ResultList)
    void MLSD(string $Path)
    void MLSD(string $Path, TElStringList $ResultList)
    void MLSD(string $Path, TList $ResultList)

Parameters

  • ResultList - Container for the unparsed listing lines (objects with file information), which will be filled by the method.
  • Path - specifies the path to the directory to be listed.

Description

    Use this method to get the contents of the current directory.
    The method executes MLSD command of FTP protocol. MLSD command is similar to LIST, but returns the information in standard machine-parsable format.

    Note, that not all servers support MLSD command (which is an extension of the standard). To check if the command is supported, inspect the value of ExtMLSTSupported property.

    During execution of this method the OnTextDataLine event is fired for each line of received reply. Overloaded methods return the listing via ResultList parameter, which can be a list of unparsed response line (the same as in OnTextDataLine event) or a list of TElFTPFileInfo objects.

    For a high-level listing method with advanced capabilities see ListDirectory.

See also:     MLST     GetFileList     ListDirectory     OnTextDataLine    

Discuss this help topic in SecureBlackbox Forum