07-09-2020 07:16 AM
Hi Team,
Would it be possible to consider “Delete” as an operation for File Operation snap pack. In a generic implementation where we taking operation as a pipeline parameter this helps to cover both move (archive) as well delete (purge) option for file transfer behaviour with a single snap, avoiding router and union steps.
Regards,
Sripathi
07-13-2020 12:19 PM
@sg_sripathi, what you’re describing is actually the “Move” file operation. The File Operation snap has only three operations: Move, Copy, and Rename.
However, you can make a little transformation for the “Delete”:
_operation == "Delete" ? "Move" : _operation
where operation is a pipeline parameter.
07-13-2020 02:41 PM
Thanks @igormicev. However due to large volume of file at the source I really need to delete the files once processed, moving is not an option.