The compress "..." in the Finder is very useful, but there are also times when there are problems, and often packaging will include some. Ds_store file,. Ds_store is a file that stores the basic information of the current directory in the Apple system, including information such as the location of the icon, the way it is displayed. Each directory will have a Destop.ini or thumbs.db similar to the Windows platform.
If you do not want to. Ds_store or __macosx ... Or. svn and so on, you can open terminal and enter the following command:
1 |
zip -r foo.zip foo -x "*.DS_Store" -x ".svn" |
Foo.zip represents the generated file name, Foo represents the path to the destination file or folder, and-r means that the contents of all subdirectories are also packaged in, with the exception of-X followed by the file name.
Remove the. Ds_store and other specified files when you hit a zip package in Mac OS x.