Skip to content

Commit

Permalink
Added section about passwords to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
abbeycode committed Jun 18, 2015
1 parent 5aa7763 commit 3458e6d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ for (URKFileInfo *info in fileInfosInArchive) {
}
```
## Working with passwords
```Objective-C
NSArray *fileInfosInArchive = [archive listFileInfo:&error];
if (archive.isPasswordProtected) {
NSString *givenPassword = // prompt user
archive.password = givenPassword
}
// You can now extract the files
```

## Extracting files to a directory
```Objective-C
BOOL extractFilesSuccessful = [archive extractFilesTo:@"some/directory"
Expand Down

0 comments on commit 3458e6d

Please sign in to comment.