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 are Create, Delete, List, and Rename. Required. The default value is List.

DIRECTORY=" directory_name "

The name of the directory to perform the ACTION on. Required.

NAME=" query_name "

The name to assign the query object containing the directory listing when ACTION is List. Required for this action; ignored otherwise.

FILTER=" file_extension "

A file extension to filter the results returned when ACTION is List. Optional for this action; ignored otherwise. Only one file extension can be used with the FILTER attribute.

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 when ACTION is Create; ignored otherwise.

SORT=" sort_criteria "

How to sort each query column returned when ACTION is List. Optional for this action; ignored otherwise. The SORT attribute can take a single query column or a comma-separated list. The actual direction for the sort is specified as ASC for ascending and DESC for descending.

NEWDIRECTORY=" new_directory_name "

The name of the new directory to be created when ACTION is Rename. Required when ACTION is Rename; ignored ...

Get Programming ColdFusion 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.