Tag Link | [FTP_GetListing] | Category | Utility |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 6.0 |
Change | Unchanged | Data Source | Any |
Output Type | Array | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
[FTP_GetListing] lists all files accessible to the current user in the remote FTP server URL folder. Outputs each file entry as an array containing the file name, type (directory or file), modification date/time, and size in bytes (for files only). Requires the
[FTP_GetListing:
Required Parameters | |
---|---|
-URL | The URL folder to be displayed. |
Optional Parameters | |
-Username | Used to specifiy a username needed to log in to the remote FTP server. |
-Password | Used to specifiy a password needed to log in to the remote FTP server. |
-NoEPSV | If |
To list all files available in a folder on a password-protected FTP server:
The following example lists all files in the ftp://ftp.example.com/private/ folder that are available to the username specified.
[FTP_GetListing:
[Array:
(Map: 'FileName'='download.zip', 'FileSize'='101k', 'FileType'='File', 'FileType'='2002-09-29 15:30:00'),
(Map: 'FileName'='More_Files', 'FileType'='File', 'FileType'='2002-09-12 12:14:39')]