 | FTPGetFilesList Method |
Get the list of the files in a direcotry via FTP (do not delete recursive sub-directory)
Namespace: ProFTPNetLibraryAssembly: ClientFTPNetLibrary (in ClientFTPNetLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static List<string> GetFilesList(
Uri address,
string username,
string password,
string proxyAddress,
bool passive,
int port,
bool keepAlive,
bool details
)
Public Shared Function GetFilesList (
address As Uri,
username As String,
password As String,
proxyAddress As String,
passive As Boolean,
port As Integer,
keepAlive As Boolean,
details As Boolean
) As List(Of String)
Parameters
- address
- Type: SystemUri
Uri of the directory to check (es: "ftp://www.domain.com/directory") - username
- Type: SystemString
FTP access username - password
- Type: SystemString
FTP access password - proxyAddress
- Type: SystemString
FTP proxy (string.empty if unknown or not used) - passive
- Type: SystemBoolean
FTP passive mode enabling (false if unknown or not used) - port
- Type: SystemInt32
FTP access port (usually 21) - keepAlive
- Type: SystemBoolean
Define if you need to keep alive the connection after the process (usually false) - details
- Type: SystemBoolean
[Missing <param name="details"/> documentation for "M:ProFTPNetLibrary.FTP.GetFilesList(System.Uri,System.String,System.String,System.String,System.Boolean,System.Int32,System.Boolean,System.Boolean)"]
Return Value
Type:
ListStringList of string with filenames successfully; null otherwise
See Also