I have a scenario where I have to create 200 folders and 100 files within each of those 200 folders.
I know there are activities to create folders and files in UiPathm, but it will take a very long time if we have to create many using those activities.
Footnote:
If the path parameters are not known or can be anything under the sun (as it happens when processing external documents and creating dynamic paths based on content in the file), it may be a better choice to use
Path.Combine
instead of
Path.Join
Also, it id advisable to always clean the path and filename when dealing with unpredictable input using
Path.GetInvalidFileNameChars()
and
Path.GetInvalidPathChars()
These 2 functions return a Char Array, so use LINQ to clean your input.