How to override a folder in UiPath

Hi,

I want to override a folder. I don’t want to copy and move files but to override.
Like there are two folders with same name in different locations. And I have to override one of these folder. Is there any way? Can’t use move function as it will create a new folder.

Try to use .net library - class file:
https://msdn.microsoft.com/en-us/library/system.io.file(v=vs.110).aspx
You can copy files from one folder and overwrite them inside the folder.

As you want to overwrite your folder, why don’t you check first if there’s a folder by the same name present already? If it is, delete it and move your folder to its destination.

2 Likes