Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / September 2004



Tip: Looking for answers? Try searching our database.

deleting folders/subfolders and files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nashir - 29 Sep 2004 23:18 GMT
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
mpwoodward - 29 Sep 2004 23:45 GMT
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

Nashir - 30 Sep 2004 00:44 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.