Files

Frends.Files.Copy / 1.3.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

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Input parameters.

Name Type Default Example Description
Directory String c:\temp

Source directory.

Pattern String "**\Folder\*.xml" test.txt, test*.txt, test?.txt, test.(txt|xml), test.[^t][^x][^t], <regex>^(?!prof).*_test.txt

Pattern to match for files. The file mask uses regular expressions, but for convenience, it has special handling for * and ? wildcards.

TargetDirectory String "d:\backup" d:\backup\

Target directory where the found files should be copied to

An unhandled error has occurred. Reload 🗙