Unzip a zip file using scala

I need a Scala code for unzip a zip folder

Please see the last answer here merging two previous answers into one: https://stackoverflow.com/a/58919660/615898

There is also the better-files library, which makes this a breeze:

val zipFile: File = file"path/to/research.zip"
val research: File = zipFile.unzipTo(destination = home/"Documents"/"research")

See https://github.com/pathikrit/better-files#zip-apis