Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-590

Post-processing built-in function to remove directory

    XMLWordPrintable

Details

    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()
      • 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

          Activity

            People

              re Robert Ehrlich
              re Robert Ehrlich
              Aditi Dubey Aditi Dubey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: