cfdirectory adds recursive support - Little Things in CFMX 7
Updated on November 14, 2023
By Pete Freitag
By Pete Freitag
I know I have written recursive custom tags, and functions (more than once) to solve this problem in the past, but now you can just add a simple recurse="true"
to your cfdirectory tags in ColdFusion MX 7.0
<cfdirectory action="list" directory="#ExpandPath("./")#" name="dir" recurse="true"> <cfdump var="#dir#">
You can also recursively delete directories. If only you could copy directories recursively (hint hint ColdFusion 8?)
cfdirectory adds recursive support - Little Things in CFMX 7 was first published on February 10, 2005.
If you like reading about cfdirectory, coldfusion 7, or cfml then you might also like:
- Build a directory browser with ColdFusion
- CFFUNCTION and CFARGUMENT don't support new types in ColdFusion 7
- Hash in ColdFusion
- Strong Encryption Technote shows undocumented features
The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.
Try Fixinator
CFBreak
The weekly newsletter for the CFML Community
Comments
After applying the CFMX7 client variable hot patch, the default database isolation level is changed from "read_committed" to "serializeable". Macromedia admits that (please see cftransaction documentation) that serializeable is NOT opptimal for database usage. As such, without wrapping a cftransaction around each query, how can I reset the default isolation level globally for the datasource back to "read_committed". Very interesting development in CFMX7. Thoughts?
by Rich W. on 09/28/2005 at 4:42:50 PM UTC
After applying the CFMX7 client variable hot patch, the default database isolation level is changed from "read_committed" to "serializeable". Macromedia admits that (please see cftransaction documentation) that serializeable is NOT opptimal for database usage. As such, without wrapping a cftransaction around each query, how can I reset the default isolation level globally for the datasource back to "read_committed". Very interesting development in CFMX7. Thoughts?
by Rich W. on 09/28/2005 at 4:43:55 PM UTC
Use "true", as indicated in the post this comment belongs to.