Skip to content

Commit 28c6e81

Browse files
authored
Update README.md
Added CopyToAsync example.
1 parent dc62930 commit 28c6e81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ ObjectivePaths is a wrapper for .NET filesystem operations. ObjectivePaths attem
1313
// LINQ Querying:
1414
var bigFilesInDirectoryB = directory.GetFiles().Where(x=> x.Length > 10737418240);
1515

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

1720
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.
1821

0 commit comments

Comments
 (0)