Hello UiPath-Forum Colleagues,
i want to get the files from a subfolder on webdav.
To do that i am using the command Directory.GetFiles(subfolder).
The target folder is stored in the variable subfolder as string.
UiPath throws an error message: Illegal characters in path.
When executing the command on the immediate command line it works, when i use the content of the variable in the Directory.GetFiles command.
Note, the folder is on a webdav server, which is mounted as drive Y.
Does anybody have an idea why the Directory.GetFiles command does not work?
Best regards,
Jo
Why does the function find the folder with βY:\data\out\VomMandanten\DCB\KSI-Export\20230508_093628_463886β, but not if i use the variable with the string as content?
Best regards, Jo
The thing is, the directory.getfiles function works when i geht files from windoes directories.
But i am working on webdav. maybe webdav requires another function.
What i do not understand is, that if i use the String itself it works, but when i use the variable that holds the string, it does not work.
Best regards,
Jo
trim(chr(0)) does not work though, i check if subfolder.EndsWith(Nothing) and then remove it with Directory.GetFiles(Left(subfolder, Len(subfolder) - 1))