NET SFTP Library
GetDirectoryListing(Regex,Boolean) Method






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class > GetDirectoryListing Method : GetDirectoryListing(Regex,Boolean) Method
Regular Expression to match
If true, directory names are returned
Get a listing of the files in the current FTP directory matching the passed regular expression
Syntax
'Declaration
 
Public Overloads Function GetDirectoryListing( _
   ByVal regularExpression As System.Text.RegularExpressions.Regex, _
   ByVal showDirectories As System.Boolean _
) As System.Collections.Generic.List(Of FTPFileInfo)
'Usage
 
Dim instance As SFTP
Dim regularExpression As System.Text.RegularExpressions.Regex
Dim showDirectories As System.Boolean
Dim value As System.Collections.Generic.List(Of FTPFileInfo)
 
value = instance.GetDirectoryListing(regularExpression, showDirectories)
public System.Collections.Generic.List<FTPFileInfo> GetDirectoryListing( 
   System.Text.RegularExpressions.Regex regularExpression,
   System.bool showDirectories
)
public function GetDirectoryListing( 
    regularExpression: System.Text.RegularExpressions.Regex;
    showDirectories: System.Boolean
): System.Collections.Generic.List; 
public function GetDirectoryListing( 
   regularExpression : System.Text.RegularExpressions.Regex,
   showDirectories : System.boolean
) : System.Collections.Generic.List;
public: System.Collections.Generic.List<FTPFileInfo*>* GetDirectoryListing( 
   System.Text.RegularExpressions.Regex* regularExpression,
   System.bool showDirectories
) 
public:
System.Collections.Generic.List<FTPFileInfo^>^ GetDirectoryListing( 
   System.Text.RegularExpressions.Regex^ regularExpression,
   System.bool showDirectories
) 

Parameters

regularExpression
Regular Expression 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

SFTP Class
SFTP Members
Overload List