Skip to content

Commit

Permalink
Fix Azure Storage DataMovement FilesShares Samples Issue (#45558)
Browse files Browse the repository at this point in the history
* fix/45322

* Update-Snippet
  • Loading branch information
jianingwang123 authored Aug 20, 2024
1 parent e1d9c29 commit d5f3c39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Upload a directory.

```C# Snippet:SimpleDirectoryUpload_Shares
DataTransfer folderTransfer = await transferManager.StartTransferAsync(
sourceResource: files.FromFile(sourceLocalDirectory),
sourceResource: files.FromDirectory(sourceLocalDirectory),
destinationResource: shares.FromDirectory(destinationFolderUri));
await folderTransfer.WaitForCompletionAsync();
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public async Task Upload()

#region Snippet:SimpleDirectoryUpload_Shares
DataTransfer folderTransfer = await transferManager.StartTransferAsync(
sourceResource: files.FromFile(sourceLocalDirectory),
sourceResource: files.FromDirectory(sourceLocalDirectory),
destinationResource: shares.FromDirectory(destinationFolderUri));
await folderTransfer.WaitForCompletionAsync();
#endregion
Expand Down

0 comments on commit d5f3c39

Please sign in to comment.