Is there a way to retrieve "Date Accessed" using cfdirectory
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
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.
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
cfdirectory is not setting the date accessed, I checked the
logs, it only records the page requested, index.cfm, not templates.
That gave me an idea to write a script to log accessed files
in CF, but again, it wouldn't record templates. I am going to try
writing a shell script to set modified dtm to accessed dtm. I will
post if it works.