The snippet can be used to create the current date folder using current year and monthand as an option, it overwrites the folder and its contents if it already exists.
The given activity already handles the validations of existence of the folders and creates a new folder if it does not exist. The user is required to input the base location where the folders are to be created and this activity will automatically create the folders. If the folder already exists the user has an option to choose if the folder and its contents need to be overwritten.
Example: Let us assume today's date is January 1st 2020 and the user wants to create the folder at C:\UIPATH, the activity will create the folders in the given manner:
1. In_FolderPath: The base location where the user wants to create the folders.
2. in_OverwriteFolder: This is the flag which is used by the user to instruct to overwrite the folders and its contents if the path already exists. If left blank, the activity will assume it to be false.
1. out_FolderCreated: This will give the output i.e. True or False. True in case the action is completed and the folders are created, else False.
2. out_FolderPath: This will return the absolute Path of the created folder.