I have a fileshare server \\fileshareserver.abc.net
and am accessing data in it using C#.
I'm calling the Directory.EnumerateFiles
method to enumerate all the file under a directory.
When I call a subdirectory under the above fileshare such as \\fileshareserver.abc.net\SubDirectory\
, the enumerate files method works fine. But when I call it on the fileshare root as \\fileshareserver.abc.net
then it throws the error:
The specified path is invalid. : \\fileshareserver.abc.com