Directory.getfiles(sourcePath) cant convert String() to string. issue

Hi

I am trying to get directories from a folder and pass it to the argument but I have an issue while using

Directory.getfiles(sourcePath)

@Hossam_Gouda

The output of directory.getfiles is stringb array…

So please modify your variable from string to array and select string in array

Variables pnel → click string → select array and then string in it

Cheers

1 Like

Hey

You can change the type of variable for a string array in the variables panel, or use the for each file and folder activity to loop within your files

Regards

the variable or argument should be a list type

image

image

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.