NET SFTP Library
GetDirectoryListing(DateTime,DateTime,Boolean) Method






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class > GetDirectoryListing Method : GetDirectoryListing(DateTime,DateTime,Boolean) Method
Minimum date
Maximum date
If true, directory names are returned
Get a listing of the files in the current FTP directory and filter between a start and end date
Syntax
'Declaration
 
Public Overloads Function GetDirectoryListing( _
   ByVal startDate As System.Date, _
   ByVal endDate As System.Date, _
   ByVal showDirectories As System.Boolean _
) As System.Collections.Generic.List(Of FTPFileInfo)
'Usage
 
Dim instance As SFTP
Dim startDate As System.Date
Dim endDate As System.Date
Dim showDirectories As System.Boolean
Dim value As System.Collections.Generic.List(Of FTPFileInfo)
 
value = instance.GetDirectoryListing(startDate, endDate, showDirectories)
public System.Collections.Generic.List<FTPFileInfo> GetDirectoryListing( 
   System.DateTime startDate,
   System.DateTime endDate,
   System.bool showDirectories
)
public function GetDirectoryListing( 
    startDate: System.DateTime;
    endDate: System.DateTime;
    showDirectories: System.Boolean
): System.Collections.Generic.List; 
public function GetDirectoryListing( 
   startDate : System.DateTime,
   endDate : System.DateTime,
   showDirectories : System.boolean
) : System.Collections.Generic.List;
public: System.Collections.Generic.List<FTPFileInfo*>* GetDirectoryListing( 
   System.DateTime startDate,
   System.DateTime endDate,
   System.bool showDirectories
) 
public:
System.Collections.Generic.List<FTPFileInfo^>^ GetDirectoryListing( 
   System.DateTime startDate,
   System.DateTime endDate,
   System.bool showDirectories
) 

Parameters

startDate
Minimum date
endDate
Maximum date
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