Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Rick C. Hodgin
  Where is Rick C. Hodgin?
 Indianapolis
 Indiana - United States
 Rick C. Hodgin
 To: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 Tags
Subject: RE: remove directory
Thread ID: 373496 Message ID: 373655 # Views: 31 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Sunday, March 24, 2013 10:35:50 PM         
   


> Rick,
> in order to avoid errors like "cannot delete since directory is not
> empty" it should start at the bottom and work its way up.
> I will code the recursive method and post it here for your convenience


There are no cases where that situation will exist. The function gets a list of every file in the directory and deletes each file individually, going through each directory recursively, so that every file and child directory is deleted by the time it goes to delete the current directory.

Best regards,
Rick C. Hodgin

ENTIRE THREAD

remove directory Posted by Koen Piller @ 3/22/2013 3:47:27 PM
RE: remove directory Posted by Rick Hodgin @ 3/22/2013 4:14:18 PM
RE: remove directory Posted by Paul Gibson @ 3/22/2013 4:16:25 PM
RE: remove directory Posted by Samir H. @ 3/24/2013 8:28:18 AM
RE: remove directory Posted by Koen Piller @ 3/24/2013 1:40:08 PM
RE: remove directory Posted by Samir H. @ 3/24/2013 3:04:26 PM
RE: remove directory Posted by Koen Piller @ 3/24/2013 5:07:28 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 7:13:54 PM
RE: remove directory Posted by Koen Piller @ 3/24/2013 9:15:33 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 9:46:27 PM
RE: remove directory Posted by Koen Piller @ 3/24/2013 10:32:17 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 10:35:50 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 10:43:07 PM
RE: remove directory Posted by Koen Piller @ 3/24/2013 10:50:04 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 10:54:13 PM