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 Name | Type | Required | Default | Description |
|---|---|---|---|---|
| FromDirectory | string | Yes | - | Source directory path |
| ToDirectory | string | Yes | - | Target directory path |
| SubDirectory | bool | No | true | Whether to include subdirectories |
| OverWrite | bool | No | false | Whether 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.
Related Nodes
- DirectoryCreateActivity: Create Directory Node
- DirectoryMoveActivity: Move Directory Node
- DirectoryDeleteActivity: Delete Directory Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28