Skip navigation
Currently Being Moderated

Date Accessed with cfdirectory

Mar 22, 2007 10:23 AM

Is there a way to retrieve "Date Accessed" using cfdirectory in CF6.1?

Details:
I am upgrading \ cleaning a site for a client, from CF5 to CF6.1 (for now)
There are 4k+ cf files, many of which are named "copy of..." or "act_fileName1, 2, 3...cfm", and many more have been copied to another directory.
I need to determine which files are actually being used.
My plan is to 'touch' the files, setting date accessed to '1/1/2007 1:00PM' and have testers run through the site.
This would tell me which files are actually being used, but I would like to use cfdirectory to list these files for me.

I am open to alternative suggestions.
 
Replies
  • Currently Being Moderated
    Mar 22, 2007 10:44 AM   in reply to kyle969
    <CFDIRECTORY NAME="foo" ACTION="list" ... > returns several variables, two of which are the file name dateLastModified. The concept code below should give you the idea.
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2007 11:22 AM   in reply to kyle969
    You may be stuck.

    In Windows Explorer, I right click a file and view properties. The last accessed date is the date and time of the right click. Similar to the Heisenberg Uncertainty Principal, the mere act of getting the "last accessed" date/time of a file requires that the file be accessed. Catch 22.

    Your best bet is probably your Web logs, where you can get not only the last accessed, but the frequency of access, time of day, etc.
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points