Gentee Programming Language > Documentation > Libraries Download documentation

ftp.list

The method retrieves a list of files and directories from the FTP server.
 
uint ftp.list(
      str   list,
      str   cmd
)

Parameters

listResult string.
cmdThe command is used to retrieve a list of files.
"LIST"Returns a list of files in the format of the LIST command.
"NLST"Returns a list of filenames with no other information.
"MLSD"Returns a list of files in the format of the MLSD command.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Internet


 Copyright © 2004-2006 Gentee Inc. All rights reserved.