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
ACTIONon. Required.-
NAME="query_name" The name to assign the query object containing the directory listing when
ACTIONisList. Required for this action; ignored otherwise.-
FILTER="file_extension" A file extension to filter the results returned when
ACTIONisList. Optional for this action; ignored otherwise. Only one file extension can be used with theFILTERattribute.-
MODE="permissions" Allows you to set permissions the way you would with the Unix chmod command. For example, setting the
MODE="777"assigns read, write, and execute permissions to the directory for everyone. Optional whenACTIONisCreate; ignored otherwise.-
SORT="sort_criteria" How to sort each query column returned when
ACTIONisList. Optional for this action; ignored otherwise. TheSORTattribute can take a single query column or a comma-separated list. The actual direction for the sort is specified asASCfor ascending andDESCfor descending.-
NEWDIRECTORY="new_directory_name" The name of the new directory to be created when
ACTIONisRename. Required whenACTIONisRename; ignored ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access