Get Files issue

Use this in your loop

Path.GetFilename(file)

And yes when you are using Directory.GetFiles() TypeArgument should be String, this will give you path just pass that to above code

See this

Thanks,
Prankur

1 Like