Create folder if not exists

how we can do
if folder exists then move file if not exists create folder and move

1 Like

Hope these steps would helpyou resolve this
–use a PATH EXISTS activity and choose FOLDER as type in property panel
and get the output wih a variable of type boolean named bool_exists
–use IF activity with condition like this
bool_exists = True
if true it will go to THEN or goes to ELSE where use CREATE DIRECTORY activity

Cheers @Gauri_Rawool

1 Like

If Directory.Exists(folder path)
//do nothing
//create a folder
create directory activity to create a folder.

Use Move File Activity to move the file.

Karthik Byggari

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