FileSetAttribute()
For the given path, sets the file attributes.
FileSetAttribute( file=any, attribute=string );
Returns: void
| Argument | Description |
|---|---|
|
file
any,
required
|
edit
file path Alias: filePath, source, path |
|
attribute
string,
required
|
edit
One of the following:
On Windows, the following additional attributes are supported (ignored on unix)
Set the attribute to normal to make a file not read-only and not hidden. |
Examples
editfilesetattribute("example.txt","readonly")
See also
- File handling
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)