*err = [NSErrorerrorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Decompression of %@ failed because we were to create a file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,nil]];

}

returnNO;

}

// Ensure the source file exists

if (![[NSFileManagerdefaultManager] fileExistsAtPath:sourcePath]) {

if (err) {

*err = [NSErrorerrorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Decompression of %@ failed the file does not exist",sourcePath],NSLocalizedDescriptionKey,nil]];

*err = [NSErrorerrorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Decompression of %@ failed because we were unable to read from the source data file",sourcePath],NSLocalizedDescriptionKey,[inputStream streamError],NSUnderlyingErrorKey,nil]];

*err = [NSErrorerrorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Decompression of %@ failed because we were unable to write to the destination data file at &@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]];