I this particular case I know that the folder is empty, so I don't think it's that. And it turns out it *does* work with "delete folder <folderPath>", so it can't be permissions.
here is the code with diagnostics:
Code: Select all
<?lc
create folder "temp/"
put "temp/" into targetFolder
revDeleteFolder targetfolder
put the syserror && the result
put "finished"
?>
this *does* work:
Code: Select all
<?lc
create folder "temp/"
put "temp/" into targetFolder
delete folder targetfolder
put "finished"
?>
I would rather use revDeleteFolder than "delete folder" just because revDeletefolder is supposed to delete a folder and all of it's contents and in my case I am deleting a possibly already existing auto-created set of directories and files and replacing them with a new set of auto-created directories and files. Using revDeleteFolder would be much more efficient and readable than traversing a bunch of folders, listing the files and deleting them.
So, I think I have found a bug - but I will check to see if it's still in server 6.6.2 before reporting.