How to rename a new directory created as result of unzip?

I believe you could use eachFile to modify the path similar to the way it was described in this post. It doesn’t necessarily make your logic more readable or maintainable - rather more complex.