Page 1 of 1
Delete folder - Can't delete that folder
Posted: Thu Dec 18, 2014 3:42 pm
by trenatos
I'm trying to delete, then create a folder to make sure that it's empty, but the result of the delete is "Can't delete this folder"
Is there a way to check for permission errors?
Re: Delete folder - Can't delete that folder
Posted: Thu Dec 18, 2014 3:48 pm
by trenatos
And solving my own problem:
It seems the issue was that the folder was not empty, so I first loop through and delete all the files in the target folder, THEN do delete folder, and voila it works.
Re: Delete folder - Can't delete that folder
Posted: Fri Dec 19, 2014 3:13 am
by William Jamieson
Why doesnt it just work when you delete folder? Is that a LC bug or is that a safety measure?
-Will
Re: Delete folder - Can't delete that folder
Posted: Tue Dec 30, 2014 2:44 am
by trenatos
It's a common thing in many languages, though many of them have a specific flag to recurse and delete everything regardless.
Re: Delete folder - Can't delete that folder
Posted: Tue Dec 30, 2014 12:37 pm
by jmburnod
Hi all,
We had a discuss about that in this thread
http://forums.livecode.com/viewtopic.ph ... der#p64890
It contains some precisions about differences for Osx and Windows
Best regards
Jean-Marc