delete folder not working

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Steve Denney
Posts: 101
Joined: Wed Dec 22, 2010 8:17 pm

delete folder not working

Post by Steve Denney » Mon Dec 15, 2014 12:45 am

Hi, I'm using 7.0.1 RC2 on windows 7 and I can’t seem to remove folders.
revDeleteFolder will certainly delete all the folder contents but neither delete folder folderName or revDeleteFolder folderName has any effect on the folder itself (whether empty or not).
Does anyone have any advice? Am I missing something obvious?
UAC is off so it’s not a permissions issue
Cheers

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: delete folder not working

Post by FourthWorld » Mon Dec 15, 2014 1:05 am

What is the value of "the result" immediately after the failed attempt?

Is the folder you're trying to delete the default folder at the time you try to delete it?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Steve Denney
Posts: 101
Joined: Wed Dec 22, 2010 8:17 pm

Re: delete folder not working

Post by Steve Denney » Mon Dec 15, 2014 2:28 am

Thanks for replying Richard, yes the folder to be deleted is set to the default folder (ooh maybe it shouldn't be...)
Here's the result: 32 delResult
Cheers

Steve Denney
Posts: 101
Joined: Wed Dec 22, 2010 8:17 pm

Re: delete folder not working

Post by Steve Denney » Mon Dec 15, 2014 2:46 am

Thanks Richard, that's it. Apparently you can't delete the defaultFolder.
If the default folder is another folder then the delete is successful (new result is delResult). The app got the files and displayed them prior to potentially being deleted, that's why it was set as the defaultFolder.
Many thanks
Steve

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: delete folder not working

Post by FourthWorld » Mon Dec 15, 2014 5:44 am

Happy to help. This is one of those things that seems logical, but only after you've spent hours finding the answer. We've all been there. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply