FileAppend does not support file object

Description

FileAppend() does not accept a file object as the first argument.

This is inconsistent with FileWrite(), which accepts a file object as the first argument.

Moreover, this is an incompatibility with Adobe ColdFusion, which accepts a file object as the first argument.

fileObject = fileOpen( "test.txt", "write" ); fileAppend( fileObject, "test content" ); fileClose( fileObject );

Attachments

4

Activity

Michael Born @ Ortus 
5 August 2021 at 15:06

Hmm, I see this is fixed in 6.0. When is Lucee 6.0 coming? Can we get this fix backmerged to 5.3.8?

Michael Born @ Ortus 
26 April 2021 at 12:07

I am very impressed with the rapid turnaround. Just wanted to put in my “Thanks!”.

Zac Spitzer 
12 April 2021 at 18:01
(edited)

here are the file or dir functions which don’t accept any as a first argument

https://trycf.com/gist/fd1520740f9d35d40d33c6947e8388d0/lucee5?theme=monokai

Michael Offner 
9 April 2021 at 09:46

we should extend that to all file functions in Lucee 6

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Affects versions

Priority

Created 6 April 2021 at 14:37
Updated 27 April 2022 at 16:57
Resolved 19 May 2021 at 11:44