Jan. 2, 2012
11:03 p.m.
Hi, I'm trying to read the files in a given directory, add them to a ZipArchive, and write that ZipArchive out to another directory. My code looks like this: zip := ZipArchive new. zipArchive addDirectory: '/Users/data/files/arabic' as: 'arabic'. fileName := 'Users/data/downloads/foo.zip'. zip writeToFileNamed: fileName. I'm getting an archive file with the correct name written out, but I can't access the contents of folder 'arabic'. Do I have to add each of the files in 'arabic' explicitly to the zipArchive? Does anyone know of some example code for this they could point me to? Thanks much and happy new year. Larry