From b688b9859acfe340032a17efedd587eb43a363a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LIU=20Dongyuan=20/=20=E6=9F=B3=E4=B8=9C=E5=8E=9F?= Date: Sat, 20 Sep 2014 13:21:42 -0700 Subject: [PATCH] Update Readme.markdown createZipFileAtPath:withFilesAtPaths: creates an invalid zip for directory --- Readme.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Readme.markdown b/Readme.markdown index d8cfc34..981e6f4 100644 --- a/Readme.markdown +++ b/Readme.markdown @@ -31,6 +31,9 @@ NSArray *inputPaths = [NSArray arrayWithObjects: [[NSBundle mainBundle] pathForResource:@"photo2" ofType:@"jpg"] nil]; [SSZipArchive createZipFileAtPath:zippedPath withFilesAtPaths:inputPaths]; + +// Zipping directory +[SSZipArchive createZipFileAtPath:zippedPath withContentsOfDirectory:inputPath]; ``` ## Tests