Skip to content

Commit

Permalink
Fix createFilesAndDirectoriesAtPath retrun value when error is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Hausherr committed Feb 2, 2015
1 parent 16d7fb4 commit 283e8d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Light-Untar.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
#
Pod::Spec.new do |s|
s.name = "Light-Untar"
s.version = "0.2.1"
s.version = "0.2.2"
s.summary = "Extract files and directories created with the tar -cf command."
s.homepage = "https://github.com/mhausherr/Light-Untar-for-iOS"
s.license = 'BSD'
s.author = { "Mathieu Hausherr" => "mhausherr@gmail.com" }
s.source = { :git => "https://github.com/mhausherr/Light-Untar-for-iOS.git", :tag => "0.2.0" }
s.source = { :git => "https://github.com/mhausherr/Light-Untar-for-iOS.git", :tag => "0.2.2" }
s.platform = :ios, '5.0'
s.source_files = '*.{h,m}'
s.requires_arc = true
Expand Down
2 changes: 1 addition & 1 deletion NSFileManager+Tar.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ - (BOOL)createFilesAndDirectoriesAtPath:(NSString *)path
if ([filemanager fileExistsAtPath:tarPath]) {
NSDictionary *attributes = [filemanager attributesOfItemAtPath:tarPath error:error];

if (*error) {
if (!attributes) {
return NO;
}

Expand Down

0 comments on commit 283e8d5

Please sign in to comment.