Lucee Function Reference

filesetattribute()

For the given path, sets the file attributes.

Example

filesetattribute(any file,string attribute):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 path  
attribute string  Yes One of the following:
  • readOnly
  • hidden
  • normal
    Set the attribute to normal to make a file not read-only and not hidden.