Opening text file in write mode doesn't empty content


When i open a text file in “write” mode, the result is like “append”:
The new content is appended to the existing.
Then, i must delete file before. It’s not normal !

OS: Linux (4.15.0-159-generic) 64bit
Java Version: 11.0.7 (AdoptOpenJDK) 64bit
Tomcat Version: Apache Tomcat/9.0.35
Lucee Version:

It seems the problem comes from the method to write lines:

<cffile action=“append”…>

The previous fileOpen mode is ignored… it’s problably… normal !