FileSetLastModified()
For the given file, set the last modification date
FileSetLastModified( file=any, date=date );
Returns: void
| Argument | Description |
|---|---|
|
file
any,
required
|
edit
file path Alias: filePath, source, path |
|
date
date,
required
|
edit
last modified date |
Examples
editfilesetlastmodified(expandPath("./testcase.txt"),#dateAdd("d", 2, now())#);
writeDump(getfileinfo(expandPath("./testcase.txt")).lastmodified);
See also
- File handling
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)