For the complete documentation index, see llms.txt. This page is also available as Markdown.

CopyFiles

Task for copying files inside SMB share.

Task version: 2.3.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

SourcePath : String

Source path relative to the share where files will be copied from.

Can be a directory path or a specific file path.

Empty means root directory.

Default: - Example: documents/reports

TargetPath : String

Target path relative to the share where files will be copied to.

Must be a directory path.

Empty means root directory.

Default: - Example: backup/reports

Task Result

Name
Description

Success : Boolean

Indicates if the task completed successfully. Example: true

Files : List<FileItem>

List of files that were successfully copied, including their source and target paths. Example: [{SourcePath: "documents\report.txt", TargetPath: "archive\report.txt"}]

Error : Error

Error that occurred during task execution. Example: object { string Message, Exception AdditionalInfo }

Task Changelog

Changelog for Task Frends.Smb.CopyFiles.

[2.3.0] - 2026-06-26

Changed

  • Username parsing: now accepts a username without a domain instead of throwing an error.

  • Server connection: removed manual DNS resolve; connects using the raw server address string.

[2.2.0] - 2026-05-20

Added

  • Added ContinueOnFailure as a new option � allows the operation to proceed when individual file copies fail, collecting errors in a failures list instead of throwing immediately

Fixed

  • Fixed rollback mechanism � replaced unreliable rename with full byte-by-byte copy.

[2.1.0] - 2026-04-23

Fixed

  • Input parameters treated as normal string instead of PathString type.

[2.0.0] - 2026-04-08

Added

  • New connection parameters that defined what servers Operating System.

  • [Breaking Change] Introduce PathString type that will represent paths with OS specific separators.

[1.0.0] - 2025-11-20

Added

  • Initial implementation

Last updated

Was this helpful?