How to checky folder if present or not

I have a requirement where I need to check a folder if not create it

I am new to this can anyone explain me

Hi @Darren_Shaw

Welcome to community

so to achieve these we have activities avaialble in uipath

so in activities check for an activity called path exist kindly use that
so the output of that will be a boolean value, if result is false use create folder activity to create new one

hope this helps

Hi @nikhil.girish

Thanks for instant reply, can you share me the workflow if possible

Sure @Darren_Shaw

1 Like

Folder_Check.zip (1.3 KB)

Its just a 2 step activity , let me know if you are stuck @Darren_Shaw

3 Likes

Hi @Darren_Shaw,

There is an activity called Path Exists activity to find whether a Folder/File exists or not.
Alternatively, you can use this line of script to check if the Directory exists:

Directory.Exists(FolderPathGoesHere)

Kind Regards,
Ashwin A.K

3 Likes

Thanks guys @nikhil.girish @ashwin.ashok

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