LassoScript Utility
Basics Browse Detail


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 -URL parameter, which is the URL of the folder to be listed. Optional -Username and -Password parameters may be used to specifiy a username and password needed to log in to the remote FTP server. The username and password values often determine which files are shown by the FTP server.


[FTP_GetListing: -URL='', -Username='my_username', -Password='my_password']


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 -NoEPSV is specified then expanded passive mode will not be used. Use this option if Lasso cannot connect using the default settings.


To list all files available in a folder on a password-protected FTP server:

The following example lists all files in the folder that are available to the username specified.

[FTP_GetListing: -URL='', -Username='Username', -Password='Password']

(Map: 'FileName'='', 'FileSize'='101k', 'FileType'='File', 'FileType'='2002-09-29 15:30:00'),
(Map: 'FileName'='More_Files', 'FileType'='File', 'FileType'='2002-09-12 12:14:39')]