Performing Directory Operations
The text file is written to the location you specified. If the file already exists, it is
replaced.
You can use
existing text file, for example, when you create log files.
Performing Directory Operations
Use the
create, delete, and rename directories.
As with
the ColdFusion Administrator Tags page. For details on the syntax of this tag, see the
CFML Reference.
Returning file information
When you use the
columns that you can reference in a
To view directory information:
1
2
cffile action="Append"
tag to return file information from a specified directory and to
cfdirectory
, ColdFusion administrators can disable
cffile
action="list"
Directory entry name.
name
Directory entry size.
size
File type: F or D for File or Directory.
type
dateLastModified
File attributes, if applicable.
attributes
(UNIX only) The octal value representing the permissions setting for the
mode
specified directory.
Create a new file in ColdFusion Studio.
Modify the file so that it appears as follows:
<html>
<head>
<title>List Directory Information</title>
</head>
<body>
<h2>List Directory Information</h2>
<cfdirectory
directory="c:\inetpub\wwwroot\mine"
name="mydirectory"
sort="size ASC, name DESC, datelastmodified">
<table cellspacing=1 cellpadding=10>
<tr>
<th>Name</th>
<th>Size</th>
<th>Type</th>
to append additional text to the end of an
attribute setting,
cfoutput
Date an entry was last modified.
cfdirectory
returns five result
cfdirectory
tag:
329
processing in
Need help?
Do you have a question about the COLDFUSION 5-DEVELOPING and is the answer not in the manual?
Questions and answers