fileInfo

Returns a struct of details about a file, such as its size, mode, checksum and last modified date.

fileInfo(file) → returns struct

This function requires Lucee 5 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

file string
Required

The path of the file. resource is an alias.

Examples
Sample code invoking the fileInfo function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub