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?
Delete folder - Can't delete that folder
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Delete folder - Can't delete that folder
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.
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.
Marcus
-
- VIP Livecode Opensource Backer
- Posts: 212
- Joined: Fri Feb 01, 2013 1:31 am
- Contact:
Re: Delete folder - Can't delete that folder
Why doesnt it just work when you delete folder? Is that a LC bug or is that a safety measure?
-Will
-Will
Re: Delete folder - Can't delete that folder
It's a common thing in many languages, though many of them have a specific flag to recurse and delete everything regardless.
Marcus
Re: Delete folder - Can't delete that folder
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
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
https://alternatic.ch