Timeline for Compressing folders on a mac, without the .DS_Store
Current License: CC BY-SA 2.5
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 9, 2021 at 12:44 | comment | added | Afanasii Kurakin | Now it magically works, sorry for the confusion @whaley | |
Apr 9, 2021 at 8:33 | comment | added | whaley | @AfanasiiKurakin can you provide a sample directory structure and the command you used? | |
Apr 8, 2021 at 9:40 | comment | added | Afanasii Kurakin | Doesn't work if .DS_Store inside of subfolder | |
Oct 13, 2010 at 13:56 | comment | added | Daniel Beck♦ |
I am sure other tools use zip or something comparable internally, which is why I asked in the first place -- the OP already has made up his mind; I merely wanted to provide additional information for others. Since it's very closely related to the question and your answer, my comments belong here. Thanks for the hint with ? ; will have to figure out how to unexclude Icons , but it's a start.
|
|
Oct 13, 2010 at 10:56 | comment | added | Daniel Beck♦ | As long as this file is not excluded, your solution might be "purer" than the others using third-party utilities etc., but inferior. And I also would like be able to trash one-trick ponies like CleanArchiver. This is why I ask. | |
Oct 13, 2010 at 10:54 | comment | added | Daniel Beck♦ |
ls says Icon? , but I think it's ASCII 0x0A at the end. If you have an OS X system, copy & paste an icon from one file info dialog to another (select the icon on the top left and Cmd-C , then on a folder info dialog the same with Cmd-V ). Then the file is created within the folder.
|
|
Oct 12, 2010 at 18:36 | comment | added | whaley | I have no clue what those filenames look like so I can't give any real guidance here. | |
Oct 12, 2010 at 17:42 | comment | added | Daniel Beck♦ | How do you exclude the Icon-files OSX creates for custom folder icons? They have a newline or something like that at the end of the filename. | |
Oct 12, 2010 at 14:50 | comment | added | whaley |
Use the -x argument twice: zip -r foo.zip foo -x *.DS_Store -x *.svn*
|
|
Oct 12, 2010 at 14:10 | comment | added | danixd | This is perfect thanks. Out of interest, how would I exclude multi path endings? Something like zip -r foo.zip foo -x "*.DS_Store, *.svn" ? | |
Oct 12, 2010 at 14:09 | vote | accept | danixd | ||
Oct 12, 2010 at 11:33 | history | answered | whaley | CC BY-SA 2.5 |