Forum Discussion

sg_sripathi's avatar
sg_sripathi
New Contributor III
6 years ago

Delete part of File Operation snap

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

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

    • sg_sripathi's avatar
      sg_sripathi
      New Contributor III

      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.