Timofey Solomko
ce4e12ac18
Rework XZ so multiByteDecode doesn't return tuples
2017-08-16 21:36:12 +03:00
Timofey Solomko
626c1f7b62
Change utf8 detection alogrithm in zip to favor more cp437
2017-08-16 20:26:33 +03:00
Timofey Solomko
e40ddacd07
Fix incorrect posixPermissions in tar in some cases
...
Sometimes "mode" fields also includes unix type which we haven't accounted for.
2017-08-16 18:36:18 +03:00
Timofey Solomko
15b9169448
Add support for NTFS extra field in ZIP
2017-08-16 18:30:36 +03:00
Timofey Solomko
288e34179c
Use new Date extension in 7z
2017-08-16 18:07:05 +03:00
Timofey Solomko
7f78732973
Add Date extension with initializer from ntfs time
2017-08-16 18:06:49 +03:00
Timofey Solomko
a0d150c68c
Add isTextFile property to ZipEntry
2017-08-16 17:55:39 +03:00
Timofey Solomko
fe74423356
Fix problems when ZipEntry.data() is called multithreadingly
2017-08-16 17:48:25 +03:00
Timofey Solomko
e6b50095ed
Add test for multithreaded calls of ZipEntry.data()
2017-08-16 17:47:48 +03:00
Timofey Solomko
f68a1f0cb7
Remove warnings about deprecation of certain TAR entry properties
2017-08-16 17:04:22 +03:00
Timofey Solomko
a29dc61183
Add isLink and linkPath properties to ContainerEntry protocol
2017-08-16 17:04:00 +03:00
Timofey Solomko
9160abf068
Add isLink and linkPath properties to ZIP
2017-08-16 17:03:42 +03:00
Timofey Solomko
67c445491e
Add isLink property to TAR
2017-08-16 17:03:24 +03:00
Timofey Solomko
a9b3a110fe
Save byte in bit functions instead of constantly access data property
2017-08-15 12:09:13 +03:00
Timofey Solomko
f21f0c7292
Reduce usage of intFromBits function
2017-08-15 12:04:22 +03:00
Timofey Solomko
2134d63535
Perform alignment of bitreader in 7z specific code of bitreader
2017-08-15 11:37:06 +03:00
Timofey Solomko
5210c16cf9
Change logic of alignment requirements in byte functions of BitReader
...
Previously, functions like byte(), uint32(), etc had a side effect: they were silently permorming alignement (skipping all bits until next byte's boundary). I've considered this as a bad practice and now a call of align() function is required before using byte function. In addition, isAligned computed property was added to check if alignment is required.
2017-08-15 11:18:02 +03:00
Timofey Solomko
0a1b356b1b
7z entries now always have type in entryAttributes
2017-08-14 18:49:59 +03:00
Timofey Solomko
8229afde2e
Prepare for first test release
v3.3.0-test.1
2017-08-14 17:36:35 +03:00
Timofey Solomko
a65666cd19
Remove unused coder IDs and extra comments
2017-08-14 17:29:58 +03:00
Timofey Solomko
59a0896fa5
Add tests for different 7z compression methods
2017-08-10 16:48:36 +03:00
Timofey Solomko
88398c4be9
Update swift version in .swift-version for linux builds
2017-08-06 18:23:00 +03:00
Timofey Solomko
b8eb63b834
Minor code improvements.
2017-08-06 18:17:43 +03:00
Timofey Solomko
a23b685008
Add tests for several 7z format features
2017-08-06 18:08:14 +03:00
Timofey Solomko
ece5bc5c99
Fix problems with reading entries' data caused by incorrect interpretation of packedStreams property of 7zFolder
2017-08-06 17:44:24 +03:00
Timofey Solomko
c341a9263c
Fix incorrect reading of substreams' crcs
2017-08-06 17:43:23 +03:00
Timofey Solomko
ffb1c78434
Fix incorrect read of end byte in 7z substream
2017-08-05 15:11:22 +03:00
Timofey Solomko
5db356f8d0
Remove extra commands in travis configuration
2017-08-03 23:00:03 +03:00
Timofey Solomko
29f99d8f53
Add a lot of tests for containers' corner cases
...
This includes containers created on Windows, as well as container with only empty file or directory and completely empty containers (which are somewhat hard to create for ZIP or TAR).
Also typo in one 7z test is fixed.
2017-08-03 22:59:34 +03:00
Timofey Solomko
3a4f66416a
Rename SevenZipTests file to 7zTests
2017-08-03 22:45:40 +03:00
Timofey Solomko
f76a7c677a
Add support for several 7z coders
2017-08-03 00:32:32 +03:00
Timofey Solomko
e79924bf84
Populate entryAttributes for 7z entry; set linkPath, too
2017-08-02 17:34:09 +03:00
Timofey Solomko
8ca5f9e37c
Use new attribute types in 7z entry info
2017-08-02 17:31:33 +03:00
Timofey Solomko
c324508ab3
Enable some new swiftlint rules
2017-08-02 17:29:54 +03:00
Timofey Solomko
0bc1d470e9
Add some types for permissions/attributes
2017-07-31 18:55:56 +03:00
Timofey Solomko
42553d82bf
Fix problem with 7z containers with empty and non-empty files
...
unpackSizes array doesn't have values for empty files.
2017-07-31 17:49:44 +03:00
Timofey Solomko
f0c0c24d90
Return empty arrays for completely empty containers
2017-07-30 22:26:25 +03:00
Timofey Solomko
86874b9bee
Add some tests for 7z "empty" cases
2017-07-30 22:25:37 +03:00
Timofey Solomko
8eeb849015
Add reference to ASF commons-compress to README
2017-07-30 20:04:57 +03:00
Timofey Solomko
995ee29531
Parse 7zEntryInfo into 7zEntry.entryAttributes
2017-07-30 20:03:26 +03:00
Timofey Solomko
5831c5201d
Add encryptionNotSupported error for 7z
2017-07-30 18:36:07 +03:00
Timofey Solomko
c5877fdc94
Reduce amount of guard statements in tests by making all tests throwing
2017-07-30 16:24:04 +03:00
Timofey Solomko
e9774296a5
Use folder.unpack(data:) function for unpacking packed headers
2017-07-30 16:00:06 +03:00
Timofey Solomko
a7dfb66820
Fix problems with unpacking files
...
We now account for the fact that one stream contains information for several files.
2017-07-30 15:53:52 +03:00
Timofey Solomko
da13e3a881
Fix incorrect 7z test2
2017-07-30 15:52:57 +03:00
Timofey Solomko
dac0bc426b
Disable swiftlint rule which contradicts my philosophy
2017-07-30 15:52:44 +03:00
Timofey Solomko
3503bcbb89
Support unavailable data in SevenZipEntry (when no substreamInfo is found)
2017-07-30 15:52:28 +03:00
Timofey Solomko
f0bdff081a
Extract function for unpacking data in 7z
2017-07-30 15:48:03 +03:00
Timofey Solomko
45e70d5f7a
Fix incorrect badge link in README
2017-07-29 23:38:03 +03:00
Timofey Solomko
e455ccb5b0
Add xcode project groups for deflate and bzip2
2017-07-29 23:30:34 +03:00