NET FTP Library
GetDirectoryListing(String,Boolean) Method






KellermanSoftware.NetFtpLibrary Namespace > FTP Class > GetDirectoryListing Method : GetDirectoryListing(String,Boolean) Method
Wildcard pattern to match
If true, directory names are returned
Get a listing of the files in the current FTP directory matching the passed wildcard expression
Syntax
'Declaration
 
Public Overloads Function GetDirectoryListing( _
   ByVal wildCardPattern As System.String, _
   ByVal showDirectories As System.Boolean _
) As System.Collections.Generic.List(Of FTPFileInfo)
'Usage
 
Dim instance As FTP
Dim wildCardPattern As System.String
Dim showDirectories As System.Boolean
Dim value As System.Collections.Generic.List(Of FTPFileInfo)
 
value = instance.GetDirectoryListing(wildCardPattern, showDirectories)
public System.Collections.Generic.List<FTPFileInfo> GetDirectoryListing( 
   System.string wildCardPattern,
   System.bool showDirectories
)
public function GetDirectoryListing( 
    wildCardPattern: System.String;
    showDirectories: System.Boolean
): System.Collections.Generic.List; 
public function GetDirectoryListing( 
   wildCardPattern : System.String,
   showDirectories : System.boolean
) : System.Collections.Generic.List;
public: System.Collections.Generic.List<FTPFileInfo*>* GetDirectoryListing( 
   System.string* wildCardPattern,
   System.bool showDirectories
) 
public:
System.Collections.Generic.List<FTPFileInfo^>^ GetDirectoryListing( 
   System.String^ wildCardPattern,
   System.bool showDirectories
) 

Parameters

wildCardPattern
Wildcard pattern to match
showDirectories
If true, directory names are returned

Return Value

A list of files
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FTP Class
FTP Members
Overload List