Skip to main content
Version: Next

DirectoryCopyActivity

Category: File Operations Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain

Overview​

DirectoryCopyActivity (Copy Directory) is a node used to copy an entire directory in the process. It inherits from ActionActivity and supports recursive copying of directories and all their subdirectories and files.

Configuration Description​

Property NameTypeRequiredDefaultDescription
FromDirectorystringYes-Source directory path
ToDirectorystringYes-Target directory path
SubDirectoryboolNotrueWhether to include subdirectories
OverWriteboolNofalseWhether to overwrite existing files

Usage Examples​

{
"Type": "DirectoryCopyActivity",
"Name": "Backup Data Directory",
"Alias": "BackupData",
"FromDirectory": "C:\\Data",
"ToDirectory": "D:\\Backup\\Data",
"SubDirectory": true,
"OverWrite": true
}

Notes​

  • ⚠️ Silently skips if the source directory does not exist.
  • ⚠️ Copying large directories may take a long time.
  • 💡 Target directory will be created automatically.

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28