Index: src/OFZIPArchiveEntry+Private.h ================================================================== --- src/OFZIPArchiveEntry+Private.h +++ src/OFZIPArchiveEntry+Private.h @@ -17,13 +17,12 @@ #import "OFZIPArchive.h" OF_ASSUME_NONNULL_BEGIN @interface OFZIPArchiveEntry () -@property (readonly) uint16_t OF_generalPurposeBitFlag, OF_lastModifiedFileTime; -@property (readonly) uint16_t OF_lastModifiedFileDate; +@property (readonly) uint16_t OF_lastModifiedFileTime, OF_lastModifiedFileDate; @property (readonly) uint64_t OF_localFileHeaderOffset; - (instancetype)OF_initWithStream: (OFStream*)stream; @end OF_ASSUME_NONNULL_END Index: src/OFZIPArchiveEntry.h ================================================================== --- src/OFZIPArchiveEntry.h +++ src/OFZIPArchiveEntry.h @@ -166,10 +166,17 @@ * The meaning of the version specific attributes depends on the attribute * compatibility part of the version that made the entry. */ @property (readonly) uint32_t versionSpecificAttributes; +/*! + * The general purpose bit flag of the entry. + * + * See the ZIP specification for details. + */ +@property (readonly) uint16_t generalPurposeBitFlag; + /*! * @brief Returns the last modification date of the entry's file. * * @return The last modification date of the entry's file */ Index: src/OFZIPArchiveEntry.m ================================================================== --- src/OFZIPArchiveEntry.m +++ src/OFZIPArchiveEntry.m @@ -146,11 +146,11 @@ @synthesize compressionMethod = _compressionMethod; @synthesize compressedSize = _compressedSize; @synthesize uncompressedSize = _uncompressedSize; @synthesize CRC32 = _CRC32; @synthesize versionSpecificAttributes = _versionSpecificAttributes; -@synthesize OF_generalPurposeBitFlag = _generalPurposeBitFlag; +@synthesize generalPurposeBitFlag = _generalPurposeBitFlag; @synthesize OF_lastModifiedFileTime = _lastModifiedFileTime; @synthesize OF_lastModifiedFileDate = _lastModifiedFileDate; @synthesize OF_localFileHeaderOffset = _localFileHeaderOffset; - (instancetype)OF_initWithStream: (OFStream*)stream Index: utils/ofzip/ZIPArchive.m ================================================================== --- utils/ofzip/ZIPArchive.m +++ utils/ofzip/ZIPArchive.m @@ -125,12 +125,16 @@ @"\tMode: %06o\n", mode]; } } if (app->_outputLevel >= 3) - [of_stdout writeFormat: @"\tExtra field: %@\n", - [entry extraField]]; + [of_stdout writeFormat: + @"\tGeneral purpose bit flag: " + @"%04" PRIx16 "\n" + @"\tExtra field: %@\n", + [entry generalPurposeBitFlag], + [entry extraField]]; if ([[entry fileComment] length] > 0) [of_stdout writeFormat: @"\tComment: %@\n", [entry fileComment]]; }