FtpClientConnection.GetListing Method (String[], String[])

 

Lists the names of directories and files in the specified folder or directory from the FTP server.

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

public void GetListing(
	out string[] folderNames,
	out string[] fileNames
)

Parameters

folderNames
Type: System.String[]

An array containing the folders in the current folder.

fileNames
Type: System.String[]

An array containing the files in the current folder.

Both folderNames and fileNames parameters are out parameters.

The following code example shows how to use the GetListing method.

//Get all folders and files of the directory 
string[] folderNames;
string[] fileNames;
ftpClientConnection.GetListing(out folders, out files); 
Return to top
Show: