Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Sftp.GetNameList Method

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

GetNameList()

Retrieves the list of file and directory names in the current remote directory.

Declaration
public string[] GetNameList()
Returns
Type Description
String[]

An array of lines, with each line representing a single name.

Implements
IFtp.GetNameList()

GetNameList(String)

Retrieves the list of file and directory names in the specified remote directory, or a list of names matching the specified mask.

Declaration
public string[] GetNameList(string path)
Parameters
Type Name Description
String path

The path of the remote directory, or null for current directory. File wildcards masks (such as *.txt) are accepted as well.

Returns
Type Description
String[]

An array of lines, with each line representing a single name.

Implements
IFtp.GetNameList(String)
Remarks

Argument is taken case sensitive if ServerType equals to Unix; case insensitive otherwise.

In This Article
  • GetNameList()
  • GetNameList(String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies