Commit Graph
54 Commits
Author SHA1 Message Date
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
Timofey Solomko 3e18f3626b Rework TarEntryInfo initialization process
It allows to make every property let constant and make init smaller
2017-10-14 23:14:55 +03:00
Timofey Solomko 95f9c5f1c9 Create pax extended headers in TarContainer.open() 2017-10-14 00:31:42 +03:00
Timofey Solomko 38f7c19188 Parse pax extended headers in tar entry info 2017-10-14 00:31:20 +03:00
Timofey Solomko 489a3a693f Accept Optional(Data) in TarExtendedHeader 2017-10-14 00:30:54 +03:00
Timofey Solomko 77dccc5365 Make TarExtendedHeader more compact by keeping only dictionary 2017-10-14 00:08:40 +03:00
Timofey Solomko 47a5924109 Add TarExtendedHeader struct 2017-10-12 19:33:44 +03:00
Timofey Solomko 0feeb2a32e Add unixType property to TarEntryInfo 2017-10-11 14:55:30 +03:00
Timofey Solomko 5c1f4b5d11 Replace mode with permissions 2017-10-11 14:52:48 +03:00
Timofey Solomko 3a8ebb2695 Make public and Int type deviceMajorNumber and deviceMinorNumber 2017-10-11 14:49:04 +03:00
Timofey Solomko 9abff8ff5c Remove TarEntryInfo.EntryType 2017-10-11 14:26:01 +03:00
Timofey Solomko 82037f1c9f Remove gnuLongLinkName property 2017-10-11 14:24:36 +03:00
Timofey Solomko 12e7837f37 Small improvements to TarEntryInfo code 2017-10-11 14:23:59 +03:00
Timofey Solomko d0dcfe7367 Make tar's fileTypeIndicator UInt8 instead of String 2017-10-11 14:21:43 +03:00
Timofey Solomko 6a1903eb8e Remove a lot of temporary properties related to name and linkName from TarEntryInfo
Also, rename linkPath to linkName
2017-10-11 14:18:23 +03:00
Timofey Solomko 07eda575df Remove isDirectory, isLink and tarType and add proper type property to TarEntryInfo 2017-10-11 14:02:05 +03:00
Timofey Solomko fc334ddfea Add two proeprties to TarEntryInfo which indicate if it is an extended header 2017-10-11 14:01:26 +03:00
Timofey Solomko 19b5380e01 Add ContainerEntryType extension: intializer from tar's fileTypeIndicator 2017-10-11 14:00:39 +03:00
Timofey Solomko b6be23eb6d Slightly update docs comments 2017-10-11 13:47:23 +03:00
Timofey Solomko 6417c6af73 Make type non-optional in Tar and Zip 2017-10-11 13:32:07 +03:00
Timofey Solomko 45ab158717 Make TarContainer conform to Container protocol 2017-10-08 22:04:05 +03:00
Timofey Solomko 0a180789bb Remove info-related code from TarEntry 2017-10-08 20:34:16 +03:00
Timofey Solomko b99b062534 Add TarEntryInfo class 2017-10-08 20:32:51 +03:00
Timofey Solomko 4a9fbc4ff5 Extract tar specific extensions into separate files 2017-10-08 20:32:39 +03:00