リモート サーバーのすべてのディレクトリを取得しようとしています。
例:
path: "\\Servename\folder"
- 動作します。
path: "\\Servename"
- エラー
私はこれを試しました:
DirectoryInfo dir = new DirectoryInfo (@"\\SERVERNAME"); <- Error happens here
//Get Directories from \\SERVERNAME
DirectoryInfo[] dirInfos = dir.GetDirectories();
エラー:ERROR: The UNC path should be of the form \\server\share