Skip to content

Commit

Permalink
Merge branch 'unzip-single-files+fix_asn1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gugmaster committed Aug 5, 2013
2 parents 1d9baa4 + 31b5cac commit 7d54db0
Show file tree
Hide file tree
Showing 7 changed files with 401 additions and 218 deletions.
9 changes: 2 additions & 7 deletions Core/Source/DTZipArchive/DTZipArchive.h
Expand Up @@ -60,11 +60,6 @@ extern NSString * const DTZipArchiveErrorDomain;
*/
@property (nonatomic, copy, readonly) NSString *path;

/**
All files and directories in zip archive
*/
@property (nonatomic, strong, readonly) NSArray *listOfEntries;

/**-------------------------------------------------------------------------------------
@name Creating A Zip Archive
---------------------------------------------------------------------------------------
Expand All @@ -88,9 +83,9 @@ extern NSString * const DTZipArchiveErrorDomain;
- (void)enumerateUncompressedFilesAsDataUsingBlock:(DTZipArchiveEnumerationResultsBlock)enumerationBlock;

/**
Creates a file tree with all given DTZipArchiveNodes starting with files and folders on root level
The nodes at the root level of the archive. Each node is a DTZipArchiveNode and can represent either a folder or a file. This forms the directory hierarchy of the archive.
*/
- (NSArray *)createFileTree;
@property (nonatomic, readonly) NSArray *nodes;

@end

Expand Down
6 changes: 2 additions & 4 deletions Core/Source/DTZipArchive/DTZipArchive.m
Expand Up @@ -27,8 +27,7 @@ - (id)initWithFileAtPath:(NSString *)path;

@implementation DTZipArchive
{
NSString *_path;

NSString *_path;
NSArray *_fileTree;
}

Expand Down Expand Up @@ -81,7 +80,7 @@ - (void)enumerateUncompressedFilesAsDataUsingBlock:(DTZipArchiveEnumerationResul

#pragma mark - FileTree

- (NSArray *)createFileTree
- (NSArray *)nodes
{
if (!_fileTree)
{
Expand Down Expand Up @@ -131,7 +130,6 @@ - (NSArray *)createFileTree
#pragma mark - Properties

@synthesize path;
@synthesize listOfEntries = _listOfEntries;

@end

Expand Down

0 comments on commit 7d54db0

Please sign in to comment.