Question

Deleting folders and files but if it can't for some reason to continue on the loop

  • 7 April 2022
  • 1 reply
  • 8 views

Basically we have a bot that will purge a folder and it's files/folders under it but if it can't access something it errors out. That is OK but would rather it continue on the loop and try to delete/remove the rest of the files instead of failing the whole bot at that moment.


1 reply

use try /catch put the delete command action in try and put the continue in catch

the will help you if delete command failed will continue the loop

check the screen shoot .easy sample to use

if it help you kindly make this as best answerthis is easy sample

Reply