Macromedia coldfusion 4.5-cfml language reference ユーザーズマニュアル

ページ / 608
Chapter 1:  ColdFusion Tags
65
RETRYCOUNT
Optional. Number of retries until failure is reported. Default is one (1). 
STOPONERROR
Optional. Yes or No. When Yes, halts all processing and displays an appropriate 
error. Default is Yes. 
When No, three variables are populated:
CFFTP.Succeeded – Yes or No.
CFFTP.ErrorCode – Error number
CFFTP.ErrorText – Message text explaining error type
PASSIVE
Optional. Boolean indicating whether to enable passive mode. By default, passive 
mode is disabled.
Example
<!--- This view-only example shows the use of CFFTP --->
<HTML>
<HEAD>
<TITLE>CFFTP Example</TITLE>
</HEAD>
<BODY>
<H3>CFFTP Example</H3>
<P>CFFTP allows users to implement File Transfer Protocol
operations.  By default, CFFTP caches an open connection to
an FTP server.
<P>CFFTP operations are usually of two types:
<UL>
<LI>Establishing a connection
<LI>Performing file and directory operations
</UL>
<P>This view-only example opens and verifies a connection,
lists the files in a directory, and closes the connection.
<!---
<P>Open a connection
<CFFTP ACTION="open"
USERNAME="anonymous"
CONNECTION="My_query"
PASSWORD="youremail@email.net"
SERVER="ftp.tucows.com"
STOPONERROR="Yes">
<P>Did it succeed? <CFOUTPUT>#CFFTP.Succeeded#</CFOUTPUT>
<P>List the files in a directory:
<CFFTP ACTION="LISTDIR"
       STOPONERROR="Yes"
       NAME="ListFiles"
       DIRECTORY="lib"