FTP_GetList

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > FTP (File Transfer Profotol) >

FTP_GetList

 

Description

 

Gets file list from FTP server.

 

Syntax

 

sFileList = FTP_GetList(lWhat, lType)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

lWhat

Numeric

No

One of the following equates:

 

%FTP_LIST_FULLLISTFILE

List only files

 

%FTP_LIST_FULLLISTDIR

List only directories

 

%FTP_LIST_FULLLIST

List files and directories

 

lType

Numeric

No

One of the following equate

 

%FTP_FULL_LIST

A full directory listing is returned in 'Buffer'.  Note that the exact format of the list depends on the particular FTP server.

 

%FTP_NAME_LIST

a listing is returned consisting of file names only.  Note that some FTP servers do not support the name list function.

 

%FTP_FULL_LIST_FILE

 

%FTP_NAME_LIST_FILE

 

 

 

Remarks

 

Restrictions

 

See also

 

Examples