Break the workflow and do exit

Hi friends,
I have to check the file in folder if its available then perform operation otherwise robot should end the workflow and should stop their execution.
Here how to end the execution, should i use flag for the same if yes then how to use flag.

Regards

@Rup_1 Use terminate workflow activity

@Rup_1,

Try:
Assign, Files = Directory.getFiles(File path)

  IF files.count < 0
  Then throw exception using **Throw** 
  activity
  Else continue

Catch:
Catch that exception.