Skip to content

Commit

Permalink
updates to files tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
tamram committed Jul 17, 2014
1 parent 5e87ee3 commit 9f5d324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions articles/storage-dotnet-how-to-use-files.md
Expand Up @@ -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();
Expand All @@ -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);
Expand Down

0 comments on commit 9f5d324

Please sign in to comment.