mihaip/infinite-mac

Rename Outside World's surrounding folder in generated ZIP file please?

Closed this issue · 2 comments

I have a request: Would it be possible for IM not to name the folder in the uploaded ZIP file in Outside World the exact same name as the file? Perhaps prepend "_" to the folder name would be nice or something like that? It makes it frustrating to extract the contents, because you cannot move the file out of the surrounding folder that IM is creating without renaming one of them manually first.

I kind of like the name being clean. I use it to create archives for the Infinite HD library (see .zips in https://github.com/mihaip/infinite-mac/tree/main/Library/Control%20Panels%20%26%20Extensions and other directories). No one else has mentioned this as being a problem.

If you'd like to change it in the version of Infinite Mac that you host, you can tweak the naming logic at

const zipName = extraction.name + ".zip";

One thing you could have added is the date/time at the end of the ZIP file name. This way it would even add value to the process, since if one exports a file, then modifies it and re-exports it again, then by having the date/time appended to the end of the ZIP file name, it would instantly be clear which version of the file it is.