77 Commits
Author SHA1 Message Date
Timofey Solomko 8434e7b1bd [docs] Add documentation for TarContainer.Format and formatOf(container:) 2018-04-13 18:45:28 +03:00
Timofey Solomko 477ebcf48e [TAR] Add TarContainer.formatOf function 2018-04-13 17:34:56 +03:00
Timofey Solomko 150a3cfc1f [TAR] Add internal property to entry info which shows if ustar-like magic was encountered 2018-04-13 17:34:56 +03:00
Timofey Solomko 58d96a1961 [TAR] Add Format enum 2018-04-13 17:34:56 +03:00
Timofey Solomko 41ca39d1fa Remove certain TODOs 2018-04-10 23:26:35 +03:00
Timofey Solomko 8045b7e7ab [TAR] Use info provider in info function 2018-04-07 13:44:19 +03:00
Timofey Solomko 100c9364f0 [TAR] Add entry info provider 2018-04-07 13:43:09 +03:00
Timofey Solomko 1d838c1d7e Slightly simplify and improve certain code 2018-04-07 13:38:00 +03:00
Timofey Solomko c9ea4f33fc [TAR] Use special entry type internal property of TarEntryInfo instead of several isSomething properties 2018-03-31 12:15:43 +03:00
Timofey Solomko 67f5ebba0f [TAR] Add nested SpecialEntryType enum into TarEntryInfo 2018-03-31 12:14:28 +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 309a07ed15 [docs] Slightly simplify notes about entries order of container functions 2018-03-17 15:37:41 +03:00
Timofey Solomko 08473e1aff Add missing documentation for unknownExtendedHeaderRecords 2018-03-04 12:09:31 +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 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 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 8fa195d560 [TAR] Replace Int.roundTo512() function with bitwise inlinable version in common Extensions file 2018-01-17 12:12:29 +03:00
Timofey Solomko fe3f1df588 [TAR] Remove Int.octalToDecimal() extension function, since it isn't used anymore 2018-01-12 21:41:19 +03:00
Timofey Solomko ac2f097049 [TAR] Use stdlib's Int from String initializer with radix parameter where possible 2018-01-12 21:40:43 +03:00
Timofey Solomko e714dc308b Updated copyright year to 2018 2018-01-03 19:44:18 +03:00
Timofey Solomko c8d92e56d3 Replace BitReader and ByteReader with BitByteData's implementations 2018-01-03 19:22:15 +03:00
Timofey Solomko 20ab480737 Complete renaming of DataWithPointer to ByteReader
This includes renaming pointerData variables to byteReader as well as renaming of files with extensions to ByteReader.
2018-01-03 19:22:14 +03:00
Timofey Solomko b9eeb1bc7c Rename ByteReader.index to offset 2018-01-03 19:22:13 +03:00
Timofey Solomko 3751e25c4f Rename DataWithPointer to ByteReader
This and following commits should ease switch to BitByteData usage.
2018-01-03 19:22:13 +03:00
Timofey Solomko 36b4654521 Correct doc string for TarError.wrongField 2017-11-18 11:08:52 +03:00
Timofey Solomko 556e42e179 Add and update documentation 2017-11-14 20:37:20 +03:00
Timofey Solomko e023088e5e Fix potential force unwrapping of nil value of size in TAR 2017-11-14 19:42:25 +03:00
Timofey Solomko 7ec2752ceb TarEntryInfo.name is no longer Optional 2017-11-11 13:28:27 +03:00
Timofey Solomko 8cf85305d4 ContainerEntryInfo.name is no longer Optional 2017-11-11 13:27:36 +03:00
Timofey Solomko 5a7b8dc812 Swiftlint autocorrect 2017-11-04 23:30:54 +03:00
Timofey Solomko 5e0b10b816 Merge two buffer functions from TAR into one 2017-11-04 11:56:22 +03:00
Timofey Solomko 353ff964b9 Merge two TarErrors into one 2017-11-04 11:51:16 +03:00
Timofey Solomko 3c6a6677be Make private couple of dwp+tar functions 2017-11-04 11:45:21 +03:00
Timofey Solomko a9dd1c4620 Remove "from" argument labels from various internal inits 2017-10-28 17:11:23 +03:00
Timofey Solomko 6f8b583d7b Set type regular for tar entries with 0 file type indicator 2017-10-28 13:58:20 +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 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 bdfaa3d073 Rework TarContainer.open to first call info() and then get data based on info entries 2017-10-21 13:50:02 +03:00
Timofey Solomko 05fa830c05 Move gnu long name tar extensions support code into TarEntryInfo 2017-10-21 13:42:20 +03:00
Timofey Solomko 590814fb17 Make Entries and EntryInfos structs instead of classes 2017-10-21 13:29:01 +03:00
Timofey Solomko d5cb73f54c Remove UnixType in favor of ContainerEntryType 2017-10-21 12:13:00 +03:00
Timofey Solomko 36817f43b4 Add a couple of todos into TarContainer 2017-10-18 00:07:51 +03:00
Timofey Solomko dace2acec2 Slightly improve code of TAR 2017-10-15 00:07:05 +03:00
Timofey Solomko 67573c7048 Implement TarContainer.info 2017-10-14 23:41:50 +03:00