At 09:13 AM 12/18/2001 -0600, you wrote:
>Anyone out there ever make a tag could check and create parent directories
>of a specified directory if they do not exist?
It shouldn't be too hard. Take a look at the directoryexists function
and the cfdirectory tag.
>For example, if I try to
>create c:\inetpub\wwwroot\test\cf\ and if the directories above that \cf\
>directory didn't exist they would be automatically created rather than
>throwing an error like CFDirectory does.
<cfif not directoryexists("c:\inetpub\wwwroot\test\cf\")>
<cfdirectory action="create" directory="c:\inetpub\wwwroot\test\cf\">
<cfelse>
whatever
</cfif>
this is untested code, but you can play around with it.
--
Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711 | ICQ: 5246969 | Fax / Phone: 860-223-7946
--
DotComIt: Database Driven Web Data
My Book: Instant ColdFusion 5 | http://www.instantcoldfusion.com
My New Book: ColdFusion: A Beginner's Guide due out next February
--
Far Cry Fly, Alternative Folk Rock
http://www.farcryfly.com | http://www.mp3.com/FarCryFly
--
I'm jealous of everyone who knows more than me
________________________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists