Permalink
Browse files

Merge pull request #3946 from tamram/tamram-071614

updates to files tutorial
  • Loading branch information...
2 parents 3b07f22 + 9f5d324 commit d0113a5d12419de3605c750d93e2b6ca551577c7 @cjgronlund cjgronlund committed Jul 17, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 articles/storage-dotnet-how-to-use-files.md
@@ -193,7 +193,7 @@ Next, add the following code to the `Main()` method, after the code shown above
CloudFileShare share = fileClient.GetShareReference("sampleshare");
//Ensure that the share exists.
- if (share.ExistsAsync().Result)
+ if (share.Exists())
{
//Get a reference to the root directory for the share.
CloudFileDirectory rootDir = share.GetRootDirectoryReference();
@@ -202,13 +202,13 @@ Next, add the following code to the `Main()` method, after the code shown above
CloudFileDirectory sampleDir = rootDir.GetDirectoryReference("sampledir");
//Ensure that the directory exists.
- if (sampleDir.ExistsAsync().Result)
+ if (sampleDir.Exists())
{
//Get a reference to the file we created previously.
CloudFile file = sampleDir.GetFileReference("samplefile.txt");
//Ensure that the file exists.
- if (file.ExistsAsync().Result)
+ if (file.Exists())
{
//Write the contents of the file to the console window.
Console.WriteLine(file.DownloadTextAsync().Result);

0 comments on commit d0113a5

Please sign in to comment.