-2

Is there a way to check the compressed size of files inside a zipped folder, and split files which are greater than 500 KB. The objective is to have a zipped file with multiple files which are less that 500KB each.

Nadia Alice
  • 111
  • 5
  • Lots of ways. You could filter the output of `unzip -l`, you could write a Python script using the `zipfile` module; heck, you could use a fuse module to mount the zip file as a filesystem and then use standard UNIX tools like `find` to search its contents. I'd suggest _picking_ a way, trying it yourself, and then asking a question about a narrow, specific problem you encounter during the attempt. – Charles Duffy May 12 '22 at 14:40

1 Answers1

0

Info-ZIP's open-source zip comes with a utility "zipsplit" that does exactly what you are asking for.

Mark Adler
  • 101,978
  • 13
  • 118
  • 158