LassoScript Utility
Basics Browse Detail

[FTP_GetFile]

Tag Link [FTP_GetFile] Category Utility
Type Substitution Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type File Security File, Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[FTP_GetFile] downloads a named file from a remote FTP server via PASV mode.

Syntax

[FTP_GetFile: -URL='ftp://ftp.example.com/myfile.zip', -File='/folder/myfile.zip', -Username='Username', -Password='Password']

Parameters

Required Parameters
-URL The URL folder from which the file will be downloaded.
-File The path to the local file to be created.
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 download a file from an FTP server:

The following example downloads a file named download.zip from ftp://ftp.example.com/private/donwload.zip where a username and password are required to access the Private folder.

[FTP_GetFile: -URL='ftp://ftp.example.com/private/download.zip', -File='/documents/download.zip', -Username='my_username', -Password='my_password']