Check if a folder exists

I need to do a folder check.
What activity should I use to do this? I looked for some in the activity menu using the word “folder”, but found nothing.
If the activity needs to add some code, could you clarify me too?

Hi @tainan.ramos,

Here you can use Path Exist activity.
It’ll give you to look for file and folder, so you use Folder option there and by specifying path, you’ll get output in the form of Boolean value.

1 Like

you can use assign for a boolean variable like this:
varPastaExiste = Directory.Exists("c:\pasta")

I will try this.
Thank you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.