kumar kothamasu Posted February 1, 2021 Share Posted February 1, 2021 The file coming as a zip format and I need to unzip and read the file, after reading the file I need to delete permanently from the directory. Is there any possible solutions in stream base 10.6. Link to comment Share on other sites More sharing options...
Steve Barber Posted February 1, 2021 Share Posted February 1, 2021 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 More sharing options...
kumar kothamasu Posted February 2, 2021 Author Share Posted February 2, 2021 Thanks sbarber Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now