Update Readme.markdown

createZipFileAtPath:withFilesAtPaths: creates an invalid zip for directory
This commit is contained in:
LIU Dongyuan / 柳东原
2014-09-20 13:21:42 -07:00
parent 60f577ab9a
commit b688b9859a

View File

@@ -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