To continue on @Z4- and @scriptmaster answer.
I tested unzip on all three OS -
- Linux (Ubuntu 23.04)
- macOS (Ventura 13.4)
- Windows 11 (Git BASH 2.41.0.windows.1)
All the OS had the following version -
unzip --help
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler.
On Ubuntu and macOS, the following command was sufficient to extract a specific folder with all its contents including subfolders and its contents.
unzip src.zip 'path/*' -d /target/dir/
But on Git for Windows, the following command is required.
unzip src.zip 'path/*' 'path/**/*' -d /target/dir/
So the best way would be to extract all files to some temp directory and then move to the target directory
unzip src.zip -d /temp/dir/
mv /temp/dir/path /target/dir/