Frends.Files.Copy / 2.0.0
Summary
Copies the files in a directory that match a pattern to another directory, reporting successes and failures separately rather than stopping at the first problem.
Typical use — fan-out to several destinations, where the split result lets a Process react to partial failure
2.0.02026-09-10
Changed
- Upgraded the task to .NET 8.
- Breaking Standardize pattern matching logic between tasks.
- Clarified relative input matching rules: patterns are evaluated relative to Directory, separators are normalized to /, matching is case-insensitive, glob mode supports * and **, and <regex> enables regex evaluation against the relative path and file name.
1.3.02025-03-19
Changed
- Update packages: Microsoft.Extensions.FileSystemGlobbing 7.0.0 -> 9.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.DirectoryServices 7.0.0 -> 8.0.0 coverlet.collector 3.1.0 -> 6.0.4 Microsoft.NET.Test.Sdk 16.6.1 -> 17.13.0 MSTest.TestAdapter 2.2.7 -> 3.8.3 MSTest.TestFramework 2.2.8 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0
1.2.02025-04-08
Added
- New option ThrowErrorOnFail to allow task to continue despite some files failing to copy.
- Files that failed to copy will be listed in the Result.FailedFiles property.
- When set to false and IfTargetFileExists is set to Throw, the task will continue copying other files despite an error.
1.1.02025-03-13
Fixed
- Fixed bug where regex patterns were not handled correctly in file matching.
1.0.22023-11-27
Changed
- Documentational changes.
1.0.12023-09-21
Fixed
- Fixed bug with file access. Changed File.Open to use FileAccess.Read, because there's no reason to give more access to the Task.
1.0.02023-02-14
Added
- Initial implementation