1539 Commits

Author SHA1 Message Date
Timofey Solomko 019bbf0629 [7-Zip] Move conversion from UInt64 to Date from entry to file info 2018-03-25 23:33:57 +03:00
Timofey Solomko 311fe5ae80 [7-Zip] Add property to SevenZipFolder orderedCompressionMethods
It lazily returns compression methods in the order used by folder.
2018-03-18 15:47:43 +03:00
Timofey Solomko 4959ec5fe0 [TAR] Add compressionMethod property to TarEntryInfo
Obviously, it is awlays equal to .copy because TAR format doesn't support any compression.
2018-03-18 01:03:14 +03:00
Timofey Solomko b123fff428 [7-Zip] Replace struct-ends ifs with guards 2018-03-18 00:58:40 +03:00
Timofey Solomko 895643b69e [7-Zip] Reduce code nesting in container 2018-03-18 00:57:27 +03:00
Timofey Solomko 72ca40ce91 Prepare for 4.2.2 release 2018-03-17 19:17:02 +03:00
Timofey Solomko a34e272f97 [docs] Fix typo in Container protocol 2018-03-17 15:38:46 +03:00
Timofey Solomko 309a07ed15 [docs] Slightly simplify notes about entries order of container functions 2018-03-17 15:37:41 +03:00
Timofey Solomko 2e3867afde [7-Zip] Some code and comments improvements to open and info functions 2018-03-17 15:34:12 +03:00
Timofey Solomko 42fdac0a79 [7-Zip] info(container:) no longer crash when SubstreamInfo doesn't have enough sizes or digests
In this cases it now sets them to nil, which is consistent with behavior of open(container:) function.
2018-03-17 15:32:07 +03:00
Timofey Solomko b301045d4a [7-Zip] Fix skipping entries in open(container:) when there is no SubstreamInfo
It was always intended to set data of entry to nil in this case, but for some reason it was never properly implemented.
2018-03-17 15:30:19 +03:00
Timofey Solomko 3a65484322 Prepare for 4.2.1 release 2018-03-08 12:48:59 +03:00
Timofey Solomko abcc985da8 Accept 7z minor version from 1 to 4 2018-03-08 12:35:16 +03:00
Timofey Solomko d0a6263ea5 Prepare for 4.2.0 release 2018-03-04 12:34:32 +03:00
Timofey Solomko 08473e1aff Add missing documentation for unknownExtendedHeaderRecords 2018-03-04 12:09:31 +03:00
Timofey Solomko 84478a3eb4 Prepare for second test release of 4.2.0 2018-03-03 20:51:26 +03:00
Timofey Solomko a186631202 Merge branch 'develop' into release-4.2.0 2018-03-03 20:37:01 +03:00
Timofey Solomko cb9d181754 [BZip2] Don't create new Huffman trees if maximum amount of trees possible is already reached 2018-03-03 20:30:49 +03:00
Timofey Solomko 8fc390a680 [swcomp] Rename PerfTest to Benchmark 2018-03-03 13:43:57 +03:00
Timofey Solomko a1db77ae25 [TAR] Add a workaround for situation when prefix has trailing slash to prevent double slashes 2018-03-03 13:12:52 +03:00
Timofey Solomko f2e7c6c4b3 [swcomp] Print addtional properties for all types of entry infos (as well as unknown pax records) 2018-03-03 13:05:50 +03:00
Timofey Solomko a73f5ddcde [TAR] Add unknownExtendedHeaderRecords to TarEntryInfo 2018-03-03 12:34:16 +03:00
Timofey Solomko 5c2e4af0d6 [TAR] Use new extended header properties in TarEntryInfo 2018-03-03 12:00:31 +03:00
Timofey Solomko 068b83d62f [TAR] Add known extended header fields as properties to TarExtendedHeader 2018-03-03 01:14:51 +03:00
Timofey Solomko 4888f37f0f Revert addition of BBD-related public APIs to Zlib, LZMA and BZip2 2018-03-02 23:32:39 +03:00
Timofey Solomko ced314d797 [swcomp] Improve how we handle alternative options in container commands 2018-03-02 22:35:00 +03:00
Timofey Solomko f3c568386a [swcomp] Replace nine block size options for BZip2 command with a single one 2018-02-23 17:59:19 +03:00
Timofey Solomko 68bd0dac3d Prepare for first test release of 4.2.0 2018-02-23 13:01:22 +03:00
Timofey Solomko b19382833b [Zlib] Add public unarchive(from:) function which uses BBD's ByteReader as its argument 2018-02-23 12:58:37 +03:00
Timofey Solomko ba037786b4 [LZMA] Add public decompress(from:) function which uses BBD's ByteReader as its argument 2018-02-23 12:58:24 +03:00
Timofey Solomko 8b4ff5c040 [BZip2] Make decompress(_ bitReader:) function public and add "from" label to its argument 2018-02-23 12:58:24 +03:00
Timofey Solomko 3d502071bb [ZIP] Use new BBD's converting inits when decompressing 2018-02-23 12:58:24 +03:00
Timofey Solomko f95b8116f2 [ZIP] Add public API for accessing uid and gid
These APIs are: ZipEntryInfo.ownerID and groupID (named for consistency with TarEntryInfo).
2018-02-21 23:14:44 +03:00
Timofey Solomko 146162132b [ZIP] Add internal support for Info-ZIP New unix extra field (0x7875) 2018-02-21 23:08:07 +03:00
Timofey Solomko 8315018de6 [ZIP] Add internal support for Info-ZIP unix extra field (0x7855) 2018-02-21 22:57:53 +03:00
Timofey Solomko b813844382 ZlibHeader's initializers now use ByteReaders instead of LsbBitReaders
Bit reading capabilities aren't needed for parsing Zlib header.
2018-02-17 12:58:53 +03:00
Timofey Solomko dc8a60b7c0 Swiftlinted 2018-02-17 12:55:31 +03:00
Timofey Solomko f02361d486 Prepare for 4.1.1 release 2018-02-11 14:52:17 +03:00
Timofey Solomko d1496deb95 [docs] Update docs comments for several TarEntryInfo properties 2018-02-11 14:31:44 +03:00
Timofey Solomko 1e67373a4e [TAR] Fix incorrect entry names when prefix field is used
Apparently, prefix and name should be separated by "/" (when prefix is not NULL).
2018-02-11 13:13:14 +03:00
Timofey Solomko e0bdd4f774 [TAR] Read magic as UInt64 2018-02-08 00:07:45 +03:00
Timofey Solomko b9f325f91b Small text/comments-related changes 2018-02-07 23:59:42 +03:00
Timofey Solomko 7319e26922 Prepare for 4.1.0 release 2018-01-31 20:30:09 +03:00
Timofey Solomko c1c54add88 Prepare for second test release of 4.1.0 2018-01-29 21:14:43 +03:00
Timofey Solomko e7511130a9 Merge branch 'develop' into release-4.1.0 2018-01-29 19:56:24 +03:00
Timofey Solomko e710e37233 [BZip2] Add comments about smaller block size for compression 2018-01-29 19:55:42 +03:00
Timofey Solomko d7390ec44f [ZIP] Native time and date are now relative to current timezone and calendar used by system 2018-01-28 19:58:40 +03:00
Timofey Solomko 32d3cc6279 Extract ntfs timestamps reference date as static property 2018-01-28 19:17:52 +03:00
Timofey Solomko e7a2707508 [swcomp] Fix 7zCommand using Zip's functions 2018-01-28 19:13:05 +03:00
Timofey Solomko 4adc62192f [swcomp] Extract most of global printInfo function as an extension to ContainerEntryInfo 2018-01-17 13:13:57 +03:00