linuxserver / emulatorjs

Self hosted web based retro emulation front end with rom and art management.
409 stars 31 forks source link

Add -j Modifier to unzip commands #58

Closed ltomes closed 2 years ago

ltomes commented 2 years ago

When extracting zip archives, if the zip archive has nested folder structures, emulatorjs attempts to hash these folders as files. Example log:

Scan exited with code: 1

sha1sum: '/data/hashes//<...>/tmp/<nested path>': Is a directory

This PR adds the -j Modifier to unzip commands to prevent directories from being created. (Similar to #52, but for zip archives) Manpage for unzip https://linux.die.net/man/1/unzip

Desc:

junk paths. The archive's directory structure is not recreated; all files are deposited in the extraction directory (by default, the current one).

Edit: Let me know if you want an issue for posterity, and I will create and ref it.