Name
cfdirectory
Synopsis
<cfdirectory>
The cfdirectory
tag lists directory contents, as
well as creates, renames, and deletes directories on the ColdFusion
application server.
Attributes
-
action="
action
"
The action to perform on the specified
directory
. Valid options areCreate
,Delete
,List
, andRename
. Required. The default value isList
.-
directory="
directory_name
"
The name of the directory to perform the
action
on. Required.-
filter="
file_extension
"
A file extension to filter the results returned when
action
isList
. Optional for this action; ignored otherwise. Only one file extension can be used with thefilter
attribute.-
mode="
permissions
"
Allows you to set permissions the way you would with the Unix chmod command. For example, setting
mode="777"
assigns read, write, and execute permissions to the directory for everyone. Optional whenaction
isCreate
; ignored otherwise.-
name="
query_name
"
The name to assign the query object containing the directory listing when
action
isList
. Required for this action; ignored otherwise.-
newdirectory="
new_directory_name"
The name of the new directory to be created when
action
isRename
. Required whenaction
isRename
; ignored otherwise.-
sort="
sort_criteria
"
How to sort each query column returned when
action
isList
. Optional for this action; ignored otherwise. Thesort
attribute can take a single query column or a comma-separated list. The actual direction for the sort is specified asAsc
for ascending andDesc
for descending. ...
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.