FTP-functions are addressed with:
declare=lu_ftp=ue_api.ue_api_chilkat
lu_ftp.ftp.<command>=propertie
alternativ:
declare=lftp=ue_api_chilkat=ftp
lu_ftp.<command>=propertie
Command |
Description |
|
|---|---|---|
init |
initializes the object declare=lftp=ue_api_chilkat=ftp lftp.init
|
|
con |
Connects to FTP server declare=lftp=ue_api_chilkat=ftp
you can set all parameter before the con-command declare=lftp=ue_api_chilkat=ftp |
|
connect |
initializes and connects to the FTP defined in settings in station setup
if nothing is set, using parameters lftp.connect=HostName=UserName=Password
beas9.0-004-053 and later you can set all parameters before the connect-command
|
|
isconnected |
checks if connected and displays message |
|
connectionfailreason |
displays connection error key |
|
port |
sets port |
|
hostname |
sets hostname |
|
username |
sets username |
|
password |
sets password |
|
passiv or ftppassiv |
sets the passive connection for ftp server (true/false) |
|
createremotedir=<path> |
creates directory on remote |
|
changeremotedir=<path> |
changes remote directory |
|
download=<remotefile>=<local path> |
downloads file |
|
getfile=<local File>=<remote file> |
downloads file |
|
getremotefiletextdata=<remote file> |
loads file and returns text in variable <value> |
|
getremotefiletextc=<remote file> |
loads file (utf 8) and returns text in variable <value> |
|
getsize=<remotefile> |
return file size in <value> |
|
putfile=local file=remote file |
send file |
|
putfilefromtextdata=file name=<value> |
send text to remote file |
|
upload=local file=remote file |
send file |
|
dir=*.* |
Returns a listing of the files and directories in the current directory matching the pattern. Passing "*.*" will return all the files and directories.
Returns Nothing on failure return result in variable <ftpverzeichnis> |
|
disconnect |
disconnects from FTP |
|
deletematching |
Deletes all the files in the current remote FTP directory matching the pattern. Returns the number of files deleted, or -1 for failure. The pattern is a string such as "*.txt", where any number of "*" wildcard characters can be used. "*" matches 0 or more of any character. |
|
deleteremotefile |
If the remoteFilePath contains non-English characters, it may be necessary to set the DirListingCharset property equal to "utf-8". Please refer to the documentation for the DirListingCharset property. |
|
deletetree |
|
|
Example:
declare=lftp=ue_api_chilkat=ftp
lftp.init
lftp.connect=myserver.net=u76d20031=A55%OP1aL
lftp.putfile=c:\temp\myfile.txt=myfile.txt
lft.disconnect