Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support splitting zips into multiple files #50

Open
ehemmete opened this issue Feb 22, 2024 · 0 comments
Open

Support splitting zips into multiple files #50

ehemmete opened this issue Feb 22, 2024 · 0 comments

Comments

@ehemmete
Copy link

I am working on a tool for my team to prep files for upload to cloud services as an archive. One of the steps is to turn bundle file types (.aplibrary, .fcpbundle, etc) into a single file for upload so the bundle flag doesn't get broken. However, some of these bundles are huge and even compressed are too large to upload.

I would like to be able to specify a max file size and that the tool create as many files as needed to archive the original in chunks up to max size.

Currently I am trying to use Process to run the built in /usr/bin/zip which can work, but is annoying and not very swifty. i.e. /usr/bin/zip -r -s 150g "(fileURL.path).zip", fileURL.lastPathComponent

It looks like the built in zip in macOS 13 & 14 is Info-ZIP https://infozip.sourceforge.net/
The ouput is a set of files like:
filename.z01
filename.z02
filename.z03
filename.zip

The Unarchiver (https://theunarchiver.com/) knows how to unzip these even though the built in Archive Utility doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant