• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

12.1. Working with Directories

The CFDIRECTORY tag lists directory contents as well as creates, renames, and deletes directories on your ColdFusion application server. In an application such as a document management system, the CFDIRECTORY tag allows you to do such tasks as list all the documents stored in a particular folder or build a Windows Explorer-style view of files and folders on your server. Because the CFDIRECTORY tag provides direct access to your ColdFusion server's filesystem, the tag can be disabled from the basic security tab in the ColdFusion Administrator.

12.1.1. Listing Directory Contents

As just noted, the CFDIRECTORY tag lists the contents of any directory on the ColdFusion server. Example 12-1 uses the CFDIRECTORY tag to list the contents of the root directory on the C drive of the ColdFusion server.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint