Copy folder inside For each folder in folder


getting activity context error while using copy folder in for Each folder in folder activity . Can some one suggest what can be done to fix this issue.
As I need to copy few folder from this to other locations.

Don’t do CurrentFolder.ToString do CurrentFolder.FullName

And you don’t need an assign for that. Just use CurrentFolder.FullName directly in the copy folder:

Also, don’t use + to combine values into paths. Use Path.Combine:

Path.Combine(str_path,StudyID…etc)