Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

flashuni

macrumors newbie
Original poster
Jun 7, 2008
11
0
I am trying to use ditto to create zip archives of every folder inside of the main folder.

Here is what I am using right now:

ditto -c -k -X --rsrc Zip Zip.zip

I need to be able to zip multiple folders,but not in one archive in separate zip archives.

It is also important that I use ditto because it is the only way to preserve resource files (mac font files). Please HELP!

Thanks, Flashuni:)
 
Not exactly sure what you need, but have you tried something like:

ls main_directory/ | xargs ditto ...

?
 
Ok their is a main directory that says fonts. I want ditto to zip up all of the folders inside of the fonts directory into individual zip files. I have done this using the regular zip command, but I have to use ditto to preserve the resource fork in the font files so that the are not reduced to 0k when zipped. Ditto does this, but I can figure out how to make it individually zip one folder inside of the fonts directory at a time. If I try to select all of the folders that I want it to zip (In automator) it zips it into one big archive which I don't want.

If you can give me another way than with ditto that preserves the resource forks and is .zip PLEASE POST!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.