Not exisiting the directory.getfiles package

Hi I am unable to write the Directory.GetFiles
It’s showing Unsupported.
do I need to import some package.
image
@lakshman @Palaniyappan @Lahiru.Fernando

1 Like

U just need System.IO in your namespace import. Check that

1 Like

Method is Directory.GetFiles

Thanks @neonova for your quick reply. :slight_smile:

Welcome and goodluck

1 Like

Please use the syntax like below.
And also import System.IO in the Imports panel (next to arguments tab in the variables panel)

Directory.GetFiles(folderPath)

1 Like

Thanks @KarthikByggari
can you please tell me what to import for now
image

No need to import anything.

You have to give like this DateTime.Now

1 Like

Now here is no error but when I run this it’s throwing this error message
image

Seems to be some error with project config files.

Close UIPath Studio.
Take backup of project.
Delete project.json file.
Open Main.xaml and see if it is fixed.

1 Like

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