Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added CopyToAsync example.
  • Loading branch information
vector-man authored Jun 12, 2023
1 parent dc62930 commit 28c6e81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ ObjectivePaths is a wrapper for .NET filesystem operations. ObjectivePaths attem
// LINQ Querying:
var bigFilesInDirectoryB = directory.GetFiles().Where(x=> x.Length > 10737418240);

// File Copying:
var newFile = directory.GetFile("newNonExistingFile.txt");
fileTwoLevelsDown.CopyToAsync(newFile, overwrite: false, CancellationToken.None);

Contributors: please review LICENSE.txt before using the library or submitting a contribution. All Subissions must be released under the MIT License (https://opensource.org/license/mit/) in order to be compatible with the project's dual-license model.

Expand Down

0 comments on commit 28c6e81

Please sign in to comment.