Mac zip compress without __MACOSX folder?

后端 未结 14 1555
有刺的猬
有刺的猬 2020-12-07 06:53

When I compress files with the built in zip compressor in Mac OSX, it results in an extra folder titled \"__MACOSX\" created in the extracted zip.

Can I adjust my se

14条回答
  •  醉酒成梦
    2020-12-07 07:16

    You can't.

    But what you can do is delete those unwanted folders after zipping. Command line zip takes different arguments where one, the -d, is for deleting contents based on a regex. So you can use it like this:

    zip -d filename.zip __MACOSX/\*
    

提交回复
热议问题