Lucee Function Reference

filetouch()

Touches given file, creates the file if not already exists.

Example

filetouch(any file,[boolean createPath]):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
file any  Yes file to touch.  
createPath boolean  No if set to false, expects all parent directories to exist, true (default) will generate necessary directories