In my case, I used a string argument where I add the path that I need to use in each needed sequence.
Finally, this argument allows me to move, delete or read files.
BTW, perhaps you might upgrade System.activities package to 22.4.5 or 22.10.3, if possible. Because normally textbox for path of string type is displayed ion the activity as the above image.
Thank you, I noticed we can use an Output from path Exist activity and is indeed a workaround, but I would prefer a cleaner sollution. (Ex: Iresourcetype = strpath.Convert(resource)).
@octavioelliot
just a preview on the technical details. Currently the UiPath internal implementation do not expose a method/constructor… which allows us to create a IRessource / ILocalRessource e.g by a single line statement from a string like: new FileSystemLocalItem(…
So we go for the workarounds / hoping that the upcoming packages will give some alternates to us.