cfdirectory

Overview ColdFusion Open BlueDragon Lucee

Manages interactions with directories. Different combos cause different attributes to be required.

Attributes

Name Required Type Default Description
3
acl No only used for S3 Resources
action No String list Action to perform
4
createpath No if set to false, expects all parent directories to exist, true (default) will generate necessary directories
10
4
destination No String Destination directory for copy action
directory Yes String Absolute pathname of directory against which to perform action.
filter No String File extension filter applied to returned names. For example: *.cfm. One filter can be applied.
4
filterdelimiters No Optional when passing a filter pattern. This value is used as a delimiter for the patterns. Default is the pipe "|" character.
8
listinfo No String all * all: includes all information in the result set. * name: includes only filenames in the result set.
mode No String Applies only to UNIX and Linux. Permissions. Octal values of Unix chmod command. Assigned to owner, group, and other, respectively.
name No String Name for output record set.
4
nameconflict No Used with action = "copy". Ignored by all other actions. Optional values are: [Overwrite]|Error.
newdirectory No String New name for directory.
recurse No Boolean false Whether ColdFusion performs the action on subdirectories.
serverpassword No allow you to access filesystem, also when access is denied for your context
sort No String asc Query column(s) by which to sort directory listing. Delimited list of columns from query output.
3
storage No only used for S3 Resources
9
3
storeACL No ACLObject An array of struct where each struct represents a permission or grant.
9
3
storeLocation No String EU Location of the created bucket. The location can either be EU or US. The default location is US.
8
3
type No String all * file: includes only filenames. * dir: includes only directory names. * all: includes both filenames and directory names.