Jump to content

how to delete a file after unzip


kumar kothamasu

Recommended Posts

I don't think there's a built-in StreamBase operator or adapter or function that will delete files.

Perhaps not the most elegant or most platform-independent solution one could imagine, but you could use the External Process Operator to issue a command line (CMD or shell, for Windows or Linux, respectively) command to delete the file.

Another possibility is to write a custom Java plugin operator to do it. (You could do it in a Java plugin function but IMO having side-effecting functions in EventFlow is just a Bad Idea.)

Or you could delegate the file deletion operation to a Python or TERR script, using the Python or TERR operators, respectively. That'd be more cross-platform than the command line, but would also be more moving parts in the architecture to install and manage.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...