ListNames() Method

See Also

FtpDLX Class  | FtpDLX Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

JScript

Show All

See Also Requirements Languages WeOnlyDo.Client.FTP Send comments on this topic.

ListNames() Method

Lists names in the directory on the server.

[Visual Basic]
Overloads Public Sub ListNames()
[C#]
public void ListNames();
[JScript]
public function ListNames();

Remarks

ListNames method will send request to the server to retrieve only names of files and directories in the given path. Once server sends data, ListItems event will be fired containing all the files listed by the server - each one in separate line, split by CRLF sequence. If wodFtpDLX.NET detects that item is a directory, it will append / (slash) to the end of it.

Once completed, Done event will be fired. If no error occurs, Args.Error argument in Done event will be set to null (Nothing in VB). If error occurred, Args.Error will contain description of the error.

To retrieve full listing of files/directories on a given path (including size, permissions, dates...) you should use ListDir method.

No wildcards can be used for RemotePath argument. RFC protocol specification for SFTP does not allow them.
Do not forget that RemotePath should always specify full absolute path (i.e. /home/joe/something) instead of relative path (i.e. joe/something).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

FtpDLX Class  | FtpDLX Members  | Overload List

 

 


© WeOnlyDo Software. All Rights Reserved.