title: How to get file attributes in ColdFusion 7?
body: <p>I cannot find a function that tells me the attributes of a given file. I specifically need to get the file's size. How do I find this info.? </p>
  
  <p>edit:</p>
  
  <p>I think I found an answer, just not the answer I was hoping for:</p>
  
  <blockquote>
    <p>So far till ColdFusion 7, there was no
    good way to find information like
    size, last modified date etc about a
    file. Only way you could do that was
    to use cfdirectory tag to list the
    directory, get the query from it, loop
    over the query until you hit the
    desired file and then fetch the
    required metadata.
    <a href="http://coldfused.blogspot.com/2007/07/new-file-io-in-coldfusion-8-part-ii.html" rel="nofollow noreferrer">http://coldfused.blogspot.com/2007/07/new-file-io-in-coldfusion-8-part-ii.html</a></p>
  </blockquote>
  
  <p>Anyone know of a better way? </p>