Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.13
-
None
Description
Current Situation
- YADE supports post-processing commands that can be executed after transfer of files.
- The post-processing commands can be defined for the Local, FTP/FTPS, SFTP and SMB Fragments and are protocol-specific.
- It is currently not possible to remove the source directory using the methods of the underlying client.
Desired Behaviour
- Introducing a built-in command function REMOVE_DIRECTORY().
- Removes the directory defined with the corresponding Directory element, including all files and subdirectories.
- This function should be supported by the following Source and Target post-processing elements:
- CommandAfterOperationOnSuccess
- CommandAfterOperationOnError
- CommandAfterOperationFinal
- WebDAV Fragment should be extended for post-processing.
Test Instruction
- Configure the Local,FTP,SFTP,SMB and WebDAV Fragments.
- Configure Profiles with the Copy Operation and Local, FTP, SFTP, SMB, WebDAV as CopySource.
- Configure for CopySource:
- Directory
- Post-processing CommandAfterOperationFinal = REMOVE_DIRECTORY()
- Configure for CopySource:
- The source directory should be removed after transfer of files.
- Repeat the tests with CommandAfterOperationOnSuccess = REMOVE_DIRECTORY() and CommandAfterOperationOnError = REMOVE_DIRECTORY()
- Repeat the tests with post-processing on CopyTarget
- The target directory should be removed after transfer of files.
Attachments
Issue Links
- is related to
-
YADE-406 Add commands for transfer post-processing with sources, targets and jump host
- Released