I'm trying to retrieve the list of files of one directory with the following code:
string[] files = System.IO.Directory.GetFiles(source);
If i try to retrieve them from a local directory, let's say C:\SomeFolder\ The string array is created correctly. If i do this on a share (\\someshare\somefolder) the array is not created.
I have to do any aditional step to retrieve from a share?
To test I already gave "Full Control" permission to every users on this share. So I guess is not permissions related.
Thanks in advance for the help.