Create a Zip file in Mac without .DS_Store files

Mac and Windows both add hidden files when you're zipping a folder.

It's specially frustrating when you want to upload files to a linux server or send them to someone with a different operating system.

Luckily for us, Mac users, we can make use of the terminal to zip a folder excluding the .DS_Store files.

zip -r folderName -x "*.DS_Store"Code language: CSS (css)

Leave a Reply

Your email address will not be published. Required fields are marked *