From 28c6e8105ecffa6b3ba873f68cd429fd096cf019 Mon Sep 17 00:00:00 2001 From: Michael Corbett Date: Mon, 12 Jun 2023 11:36:06 -0400 Subject: [PATCH] Update README.md Added CopyToAsync example. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8a6e89d..8804670 100644 --- a/README.md +++ b/README.md @@ -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.