Whatever message this page gives is out now! Go check it out!

cfftp action = "listDir"

Last update:
May 18, 2026

Description

To access the columns in a query object, use this tag with action = "listDir".

Usage

When you use this action, specify a value for the name attribute. This value holds the results of the listDir action in a query object. The query object consists of columns that you can reference, in the form queryname.columnamerow, where queryname is the name of the query, specified in the name attribute; and columnname is a column returned in the query object. The value row is the row number of each file/directory entry returned by the listDir operation. A separate row is created for each entry:
cfftp query object 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
File size of the current element.
LastModified
Unformatted date/time value of the current element.
Attributes
String. Attributes of the current element: normal or Directory.
Mode
Applies only to UNIX and Linux. Permissions. Octal string.
Note: Previously supported query column values that pertain to system-specific information are not supported; for example, hidden and system.

cfscript equivalent of the syntax

<cfscript> 
    cfftp(name, path, url, length, lastModified, attributes, mode) 
</cfscript>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page