`<cffile action="write">` supports a `mode` ...
# cfml-general
a
<cffile action="write">
supports a
mode
parameter.
fileWrite
on neither CF nor Lucee does. What's that all about then? Is there some good reason I am missing? Or A balls-up from CF that Lucee has diligently cross-ported?
z
all the tag does is batch the additional calls after writing https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/tag/FileTag.java#L748 so it's just the same as doing https://cfdocs.org/filesetaccessmode after filewrite
a
Ah! OK, I was completely unaware
fileSetAccessMode
was a thing. All good. Thanks mate.
👍 1
a
Yeah. My problem is I think I already know everything about CFML so don't think to look for functions I don't know about. ;-) Also like I was on the PR programme when
fileWrite
etc were first added to CFML so wrongly figured I knew everything there was to know about those functions. But like this wasn't even a case of me slapping my forehead and going "oh yeah! Forgot about that!" it was a "what? That's a function? Blimey"
☝🏾 1
I like the implementation here. Each function does one thing, and sticks to just that.
e
finally! 🤣
Copy code
Adam Cameron ~ My problem is I think I already know everything
no take backs... even if i did quote you out of context
a
hahahahahahahaha
Gotta be able to admit these things eh?