User Guide
70 CFML Language Reference
CFFTP.ReturnValue Variable
The value of the CFFTP.ReturnValue variable is determined by the results of the
ACTION attribute used in CFFTP.
Accessing the Columns in a Query Object
When you use CFFTP with the ListDir action, you must also specify a value for the
NAME attribute. The value of the NAME attribute is used to hold the results of the
ListDir action in a query object. The query object consists of columns you can
reference in the form:
queryname.columname[row]
Where queryname is the name of the query as specified in the NAME attribute and
columnname is one of the columns returned in the query object as shown in the
following table. Row is the row number for each file/directory entry returned by the
ListDir operation. A separate row is created for each entry.
CFFTP.ReturnValue Variable
CFFTP Action Value of CFFTP.ReturnValue
GetCurrentDir String value containing the current directory
GetCurrentURL String value containing the current URL
ExistsDir Yes or No
ExistsFile Yes or No
Exists Yes or No
CFFTP Query Object Columns
Column Description
Name Filename of the current element
Path File path (without drive designation) of the
current element
URL Complete URL for the current element (file or
directory)
Length Number indicating file size of the current element
LastModified Unformatted date/time value of the current
element