How do I get information about a file?

Use the getFileInfo() function.

GetFileInfo returns a structure with the following information: filename, path, parent directory, type, size, when the file was most recently modified, whether the file has read permission, write permission, and is hidden.

<cfdump var="#getFileInfo("/myFile.doc")#">

This question was written by Jeremy Petersen
It was last updated on July 18, 2008.


File and Directory Access


comments powered by Disqus