从azure的datalake商店下载文件时GMicrosoft.Rest.Azure.CloudException?

时间:2017-09-11 15:49:34

标签: file azure exception download

我收到了提到的Rest Exception

DownloadFile(@"/catalog/CSV1.txt", "C:\\Users\\samda\\Desktop\\CSV1.txt");

public static void DownloadFile(string srcPath, string destPath)
        {
            var stream = _adlsFileSystemClient.FileSystem.Open(_adlsAccountName, srcPath);
            var fileStream = new FileStream(destPath, FileMode.Create);

            stream.CopyTo(fileStream);
            fileStream.Close();
            stream.Close();
        }

0 个答案:

没有答案