Hi
In my opion there is a major feature missing: There should be a checkbox for the "Delete Directory"-Action, which defines what happens when the directory does not exist. (Similar to the chechbox "Fail if Zero File Affected" for the "Delete File(s)"- Action) Otherwise a have to check the existence of the directory in advance (what is quit annoying and needs at least three actions). The other option would be to check the "Ignore Failure"-checkbox but for me it's a huge different whether a directory does not exist (and the action fails because of this) or whether the deletion of the directory fails.
Best regards,
Andrew
Hi Andrew,
The proper way to handle this is to use the Check If File/Folder Exists action and then use the If…Else action, I’m not sure what options you could add to Delete Directory action to allow you to work around the problem of knowing whether it failed due to the directory missing or another error, such as access denied. Even if we were to add an option to set a variable if the folder is missing, you still need to use additional actions. If you just want to skip the Delete Directory action if the directory doesn’t exist then you can do it in 2 actions by using Check If File/Folder Exists, setting the ‘Set Variable’ option, then using the variable as an execute condition on the Delete Directory action.
Regards,
Paul.
Hi
Thanks for the help. I see your point of view, but because there is such an option for the "Delete File(s)"-Action which just works like a like it to have for the "Delete Directory", I really would appreciate to have a similar option for the "Delete Directory"-Action.
The Action could do this check internally.
Consider this as a feature request (a small one bay the way )
Best regards
Andrew