Get file information

October 30, 2009 by Jean

Get information on a file using Java functions:

variables.myFile = CreateObject("java", "java.io.File");
variables.myFile.init("/path/to/file");
variables.last_modified = myFile.lastModified();

Sometimes more convenient than CFFILE.

In: ColdFusion