Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > zip on Mac OS, unzip on Linux: junk files

zip on Mac OS, unzip on Linux: junk files
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2001
Status: Offline
Reply With Quote
May 17, 2004, 10:56 PM
 
When I unzip a Mac Os X zip archive on Linux, I get a file beginning with "._" for every regular file in archive. I tried filtering out these files using with unzip archive.zip -x "*._" but the "*._" files still came through. What I think is happening is the _files with names beginning with "._" are being created from the extra Mac OS X file info, so the exclusion doesn't work because the files aren't really there to begin with. I tried the -i and -J options with unzip but got syntax error.

To reproduce this problem, on MacOS X just create zip archive of a folder, ftp to Linux machine and unzip. You should see a file beginning with "._" for every regular file your Mac Os X created zip archive.
     
JNI
Forum Regular
Join Date: Oct 2002
Location: Left Coast
Status: Offline
Reply With Quote
May 18, 2004, 02:54 AM
 
Yeah, when you use the Archive command in the Finder contextual menu it will always add Mac meta-data to the archive. It's kinda broken. I can see the need for it when the source file has creator/type info or resource forks, in which case you would want to preserve that stuff so the original can be recreated exactly for proper Mac usage, but unfortunately the Finder archive item creates that stuff even if you archive a raw binary file. It shouldn't do that, but that's just the way it is right now.

You will need to use something else other than Finder Archive if you want to create a raw zip archive sans the meta data. I think DropZip or ZipIt does a smarter job. Personally I use OnMyCommand to invoke the command line gzip tool when I want to create a raw zip archive.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:45 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2