Lasso Soft Inc. > Home

[FTP_GetListing]

[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.

  • Syntax
  • Parameters
[FTP_GetListing: -URL='ftp://ftp.example.com/private/', -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.
Examples

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: -URL='ftp://ftp.example.com/private/', -Username='Username', -Password='Password']
Result:
[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')]
Tag Link [FTP_GetListing] Category Utility
Type Substitution Data Source Any
Support Preferred Version 6.0
Output Type Array Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft