cancel
Showing results for 
Search instead for 
Did you mean: 

Delete part of File Operation snap

sg_sripathi
New Contributor III

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

2 REPLIES 2

igormicev
Contributor

@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.

image

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.