I need ti delete regularly folders that have subfolders and files.
do I need to used the cffile (list and then delete) ot is there another way to
delete folders containing subfolders and files in one go?
Please advise if anyoen has an idea
Thanks
Nashir
On 9/29/04 5:18 PM, in article cjfcbi$fmh$1@forums.macromedia.com, "Nashir"
<webforumsuser@macromedia.com> wrote:
> I need ti delete regularly folders that have subfolders and files.
> do I need to used the cffile (list and then delete) ot is there another way
[quoted text clipped - 3 lines]
> Thanks
> Nashir
Unfortunately there is no recursive delete with cfdirectory in CFMX, so you
have to delete your files in each directory first, then you can delete the
directory once it's empty.
Matt

Signature
Matt Woodward
Team Macromedia Member - ColdFusion
I found a great tag that does the job
http://www.emerle.net/programming/deltree.cfm
to delete everything (subfolders and files) use the cf_delltree_files (you may
have to change the cf_emerle_deltree to cf_deltree) and it will work perfect
Nashir
mpwoodward - 30 Sep 2004 00:45 GMT
On 9/29/04 6:44 PM, in article cjfhdg$jdc$1@forums.macromedia.com, "Nashir"
<webforumsuser@macromedia.com> wrote:
> I found a great tag that does the job
>
[quoted text clipped - 5 lines]
>
> Nashir
Great to know--thanks.
Matt

Signature
Matt Woodward
Team Macromedia Member - ColdFusion