Sets the attributes of an on-disk file in Windows. This function does not work with in-memory files.
fileSetAttribute(filePath, attribute)
→ returns void
true and the other one to falsereadOnlyhiddennormalmyFile = getTempFile(getTempDirectory(),"testFile");
writeOutput('is writable: '&getFileInfo(myFile).canWrite);
fileSetAttribute(myFile,'readOnly');
writeOutput(' → '&getFileInfo(myFile).canWrite);
Expected Result: is writable: YES → NO
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.