#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    Breckenridge, Colorado
    Posts
    2
    Rep Power
    0

    Check the contents of a directory


    I'd like to be able to check the contents of a directory on my web server. If an images is there, I'd like to dynamically write the code to call the image but I don't know how to tell CF to look in the directory and if the image is there write the code.

    I know I can use the <cfif> tag but what statement do I use? If what, the image = 0?

    Can anyone help me?
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,270
    Rep Power
    968
    Look at the cfdirectory tag.

IMN logo majestic logo threadwatch logo seochat tools logo