57 Commits
Author SHA1 Message Date
Timofey Solomko a447e6adcf Don't check unicodeness of zip strings if language encoding flags is set 2017-11-22 23:04:21 +03:00
Timofey Solomko b9cebf13e9 Remove dwp functions with count argument 2017-11-22 22:08:02 +03:00
Timofey Solomko 556e42e179 Add and update documentation 2017-11-14 20:37:20 +03:00
Timofey Solomko 60ad7a15b9 Fix build problem on linux 2017-11-11 13:43:58 +03:00
Timofey Solomko 8cf85305d4 ContainerEntryInfo.name is no longer Optional 2017-11-11 13:27:36 +03:00
Timofey Solomko 1164d8eafb Extract new DWP zip string extension into a separate file and rename remaning file 2017-11-11 13:05:12 +03:00
Timofey Solomko 8114e55285 Make ZipCommon.getStringField function as an extension of DataWithPointer 2017-11-11 12:59:54 +03:00
Timofey Solomko feb41deed1 Return Data instead of UInt8 arrays in internal decompress functions 2017-11-11 12:54:31 +03:00
Timofey Solomko 03e6ed4256 Deal with Data object instead of bytes array in ZipContainer's getEntryData() 2017-11-11 12:49:49 +03:00
Timofey Solomko acb3d4d231 Simplify Zip's LZMA code by utilizing main LZMA decompress function 2017-11-11 12:48:08 +03:00
Timofey Solomko 2ff3b12b73 Remove converting sizes to Int in ZipContainer.getEntryData 2017-11-11 12:46:55 +03:00
Timofey Solomko 6b8c90f0bd FileSystemType properties can no longer be nil 2017-11-11 11:46:22 +03:00
Timofey Solomko 5a7b8dc812 Swiftlint autocorrect 2017-11-04 23:30:54 +03:00
Timofey Solomko 1f752affc3 ZipError.wrongCRC now includes all already processed entries 2017-11-04 22:11:55 +03:00
Timofey Solomko 9236940eac Rename ZipError.wrongCRC32 to ZipError.wrongCRC 2017-11-04 17:28:57 +03:00
Timofey Solomko f6808671a9 Add workaround for compilation problem in ZipContainer 2017-10-31 20:18:53 +03:00
Timofey Solomko c445e09c92 Rename LZMATempDecoder into LZMADecoder 2017-10-29 12:54:35 +03:00
Timofey Solomko bca275f3aa Remove label from the argument of setProperties function 2017-10-29 12:37:28 +03:00
Timofey Solomko 75ecd316a9 Use new LZMA decoder in ZIP 2017-10-29 12:08:15 +03:00
Timofey Solomko f2b03d3e42 Restore conformance to Container protocol of SevenZipContainer
Somehow I forgot to this...
2017-10-28 17:58:09 +03:00
Timofey Solomko dc6ad70168 Small updates to comments in a couple of cases 2017-10-28 17:50:00 +03:00
Timofey Solomko 15f954cd46 Use new compression method enum in ZIP 2017-10-28 17:45:01 +03:00
Timofey Solomko a9dd1c4620 Remove "from" argument labels from various internal inits 2017-10-28 17:11:23 +03:00
Timofey Solomko d7072e732b Use new FileSystemType enum for new fileSystemType property in ZIP 2017-10-28 17:07:57 +03:00
Timofey Solomko 8b67fca4fe Directories from TAR and ZIP now have nil for their data 2017-10-28 13:44:13 +03:00
Timofey Solomko 1146c215fd Remove some redundant checks in local header validation 2017-10-28 13:05:18 +03:00
Timofey Solomko 9f74cfb793 Move validation into local header and call it from entry info init 2017-10-28 13:02:57 +03:00
Timofey Solomko 4bfdd9a306 Set access and creation time to exttimestamps and NTFS extra fields from localHeader if possible 2017-10-28 13:00:55 +03:00
Timofey Solomko 95f9139d29 Use local header from entry info in getEntryData 2017-10-28 13:00:11 +03:00
Timofey Solomko 4793ddbc47 Load and save local header in ZipEntryInfo 2017-10-28 12:59:44 +03:00
Timofey Solomko 05dc6ce35e Check and skip ZIP's archive extra data record before central directory 2017-10-28 12:49:34 +03:00
Timofey Solomko b3ab5167c2 Rework some ZIP code in preparation for async API 2017-10-28 12:33:45 +03:00
Timofey Solomko 8de32b42c5 Remove unused property ZipLocalHeader.headerSize 2017-10-28 11:30:20 +03:00
Timofey Solomko 72d7d7e764 Add permissions property to ContainerEntryInfo 2017-10-23 20:15:40 +03:00
Timofey Solomko a22a05fedc Add a/c/m times to ContainerEntryInfo protocol.
This also adds accessTime from NTFS extra field in ZipEntryInfo
2017-10-23 20:13:40 +03:00
Timofey Solomko 0d3369a4e5 Rename some variables for consistency 2017-10-21 13:51:20 +03:00
Timofey Solomko 590814fb17 Make Entries and EntryInfos structs instead of classes 2017-10-21 13:29:01 +03:00
Timofey Solomko 3615b59bfb Use new info function in ZipContainer.open 2017-10-21 13:21:03 +03:00
Timofey Solomko c2b55cc590 Add ZipContainer.info function 2017-10-21 13:20:48 +03:00
Timofey Solomko 3a2a430a5b Fix more properly various problems with type conversions of zip64 size and offset fields 2017-10-21 13:16:38 +03:00
Timofey Solomko 0cf736d844 Fix potentially getting incorrect offset to CD entry 2017-10-21 12:50:46 +03:00
Timofey Solomko 7779058406 Small docs fixes for ZipContainer.open 2017-10-21 12:50:20 +03:00
Timofey Solomko 4692dada35 Extract local header validate function 2017-10-21 12:50:07 +03:00
Timofey Solomko d889f79e78 CdEntry's validate no longer has default nil value 2017-10-21 12:46:13 +03:00
Timofey Solomko d5cb73f54c Remove UnixType in favor of ContainerEntryType 2017-10-21 12:13:00 +03:00
Timofey Solomko 0e71a35e83 Fix not reading through all cd entries in ZipContainer 2017-10-18 00:08:40 +03:00
Timofey Solomko 654d9381e9 Rework ZipEntryInfo 2017-10-18 00:08:05 +03:00
Timofey Solomko 4a310de0c3 Extract zip cd entry validation code into separate function 2017-10-17 23:37:28 +03:00
Timofey Solomko 58e099b1c9 Move zip cd entry init into ZipEntryInfo init 2017-10-17 23:37:16 +03:00
Timofey Solomko 6417c6af73 Make type non-optional in Tar and Zip 2017-10-11 13:32:07 +03:00