Files

Frends.Files.Move / 2.0.0

Summary

Moves files matching a pattern between directories, and can authenticate separately against a network share at either end. A move is a handover rather than a copy, so the source stops existing.

Typical use — claiming work from a shared drop directory, where moving the file is what stops another run picking it up

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Input parameters.

Name Type Default Example Description
SourceDirectory 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" \\183.169.59.122\Shared\dst

Target directory where the found files should be copied to

An unhandled error has occurred. Reload 🗙