I got this working. Does anybody have any idea how much impact
this has on the server?? All the literature I found says that it
read the file - implying that it reads in the entire file. This
would be a big impact on our server.
The suggesttion was just an instinctive reaction to your
question,
"Couldn't find a coldfusion function that returns this sort of
information, any ideas?".
Oh, and, yes, cffile's read or readbinary will read the file,
and it is, of course, less efficient than cfdirectory if you only
want to get file size. However, the impact of cffile on the server
is not as dramatically different from that of cfdirectory or Java
as has been said here. It should be realized that, in some cases,
it is the creation of objects that usually consumes the most
resources, even if those objects do not read files. Don't take my
word for it. Measure the execution times yourself.
In any case, you should not go empty-handed. As Mr Black has
suggested, one could also do it with cfdirectory. I've done so
below.