Commit Graph

  • 72d7d7e764 Add permissions property to ContainerEntryInfo Timofey Solomko 2017-10-23 20:15:40 +03:00
  • a22a05fedc Add a/c/m times to ContainerEntryInfo protocol. Timofey Solomko 2017-10-23 20:13:40 +03:00
  • d6c265c8e1 Add ability to use file name embedded into gzip archive Timofey Solomko 2017-10-22 17:20:55 +03:00
  • f850bd311a Replace fatalErrors with prints and exits Timofey Solomko 2017-10-22 17:08:51 +03:00
  • 6811bfb554 Remove unused print statement Timofey Solomko 2017-10-22 17:06:14 +03:00
  • 90a5f9f4e7 Same changes (compress in bz2 command and default output values) for bzip2 command Timofey Solomko 2017-10-22 17:06:06 +03:00
  • cd86703404 Move compress functionality into gz command; also provide some reasonable default values for output path Timofey Solomko 2017-10-22 17:00:22 +03:00
  • f55f8231eb Add verbose option to 7zip, tar and zip commands Timofey Solomko 2017-10-22 16:40:43 +03:00
  • 920a49d32d Update SwiftCLI to 4.0.2 Timofey Solomko 2017-10-22 16:39:26 +03:00
  • 29e27bc31d Update SwiftCLI to 3.1.0 Timofey Solomko 2017-10-22 16:29:32 +03:00
  • 2fabe65490 Merge branch 'feature-swcomp' into develop Timofey Solomko 2017-10-22 13:29:08 +03:00
  • f9f4d71ec8 Remove swcomp revision and update swcomp's description Timofey Solomko 2017-10-22 13:28:30 +03:00
  • cff491414c Add swcomp target to SPM manifest Timofey Solomko 2017-10-21 23:49:56 +03:00
  • b70d1b9395 Ignore pins file Timofey Solomko 2017-10-21 23:48:59 +03:00
  • c375f2b0d2 Disable some container related code in swcomp Timofey Solomko 2017-10-21 23:39:33 +03:00
  • 240493a633 Add swcomp sources Timofey Solomko 2017-10-21 23:22:40 +03:00
  • 0d3369a4e5 Rename some variables for consistency Timofey Solomko 2017-10-21 13:47:44 +03:00
  • bdfaa3d073 Rework TarContainer.open to first call info() and then get data based on info entries Timofey Solomko 2017-10-21 13:47:29 +03:00
  • 05fa830c05 Move gnu long name tar extensions support code into TarEntryInfo Timofey Solomko 2017-10-21 13:42:20 +03:00
  • 590814fb17 Make Entries and EntryInfos structs instead of classes Timofey Solomko 2017-10-21 13:29:01 +03:00
  • 798cfb98ca Fix zip "big container" test Timofey Solomko 2017-10-21 13:24:17 +03:00
  • 3615b59bfb Use new info function in ZipContainer.open Timofey Solomko 2017-10-21 13:21:03 +03:00
  • c2b55cc590 Add ZipContainer.info function Timofey Solomko 2017-10-21 13:20:48 +03:00
  • 3a2a430a5b Fix more properly various problems with type conversions of zip64 size and offset fields Timofey Solomko 2017-10-21 13:14:56 +03:00
  • 0cf736d844 Fix potentially getting incorrect offset to CD entry Timofey Solomko 2017-10-21 12:50:46 +03:00
  • 7779058406 Small docs fixes for ZipContainer.open Timofey Solomko 2017-10-21 12:50:20 +03:00
  • 4692dada35 Extract local header validate function Timofey Solomko 2017-10-21 12:50:07 +03:00
  • d889f79e78 CdEntry's validate no longer has default nil value Timofey Solomko 2017-10-21 12:46:13 +03:00
  • d5cb73f54c Remove UnixType in favor of ContainerEntryType Timofey Solomko 2017-10-21 12:13:00 +03:00
  • 4c7aa41151 Update ZipTests to the changes in ZipEntryInfo Timofey Solomko 2017-10-18 00:09:01 +03:00
  • 0e71a35e83 Fix not reading through all cd entries in ZipContainer Timofey Solomko 2017-10-18 00:08:40 +03:00
  • 654d9381e9 Rework ZipEntryInfo Timofey Solomko 2017-10-18 00:08:05 +03:00
  • 36817f43b4 Add a couple of todos into TarContainer Timofey Solomko 2017-10-18 00:07:51 +03:00
  • 4a310de0c3 Extract zip cd entry validation code into separate function Timofey Solomko 2017-10-17 23:37:28 +03:00
  • 58e099b1c9 Move zip cd entry init into ZipEntryInfo init Timofey Solomko 2017-10-17 23:37:16 +03:00
  • dace2acec2 Slightly improve code of TAR Timofey Solomko 2017-10-15 00:07:05 +03:00
  • d0fe2ac9dd Add "big container" test for TAR Timofey Solomko 2017-10-14 23:48:09 +03:00
  • 67573c7048 Implement TarContainer.info Timofey Solomko 2017-10-14 23:41:50 +03:00
  • e974593e63 Make DataWithPointer more stable to data slicing technique Timofey Solomko 2017-10-14 23:41:27 +03:00
  • 3e18f3626b Rework TarEntryInfo initialization process Timofey Solomko 2017-10-14 23:14:55 +03:00
  • 95f9c5f1c9 Create pax extended headers in TarContainer.open() Timofey Solomko 2017-10-14 00:31:42 +03:00
  • 38f7c19188 Parse pax extended headers in tar entry info Timofey Solomko 2017-10-14 00:31:20 +03:00
  • 489a3a693f Accept Optional(Data) in TarExtendedHeader Timofey Solomko 2017-10-14 00:30:54 +03:00
  • 77dccc5365 Make TarExtendedHeader more compact by keeping only dictionary Timofey Solomko 2017-10-14 00:08:40 +03:00
  • 47a5924109 Add TarExtendedHeader struct Timofey Solomko 2017-10-12 19:33:44 +03:00
  • c4258965ec Remove Protocols subfolders Timofey Solomko 2017-10-12 19:05:59 +03:00
  • 0feeb2a32e Add unixType property to TarEntryInfo Timofey Solomko 2017-10-11 14:55:30 +03:00
  • 5c1f4b5d11 Replace mode with permissions Timofey Solomko 2017-10-11 14:52:48 +03:00
  • 3a8ebb2695 Make public and Int type deviceMajorNumber and deviceMinorNumber Timofey Solomko 2017-10-11 14:49:04 +03:00
  • 9abff8ff5c Remove TarEntryInfo.EntryType Timofey Solomko 2017-10-11 14:26:01 +03:00
  • 1b4accb9c4 Add missing doc comments to ContainerEntryType Timofey Solomko 2017-10-11 14:25:49 +03:00
  • 82037f1c9f Remove gnuLongLinkName property Timofey Solomko 2017-10-11 14:24:36 +03:00
  • 12e7837f37 Small improvements to TarEntryInfo code Timofey Solomko 2017-10-11 14:23:59 +03:00
  • d0dcfe7367 Make tar's fileTypeIndicator UInt8 instead of String Timofey Solomko 2017-10-11 14:21:43 +03:00
  • 6a1903eb8e Remove a lot of temporary properties related to name and linkName from TarEntryInfo Timofey Solomko 2017-10-11 14:18:23 +03:00
  • fe7afa9542 Adopt changes to Tar in tests Timofey Solomko 2017-10-11 14:03:40 +03:00
  • 07eda575df Remove isDirectory, isLink and tarType and add proper type property to TarEntryInfo Timofey Solomko 2017-10-11 14:02:05 +03:00
  • fc334ddfea Add two proeprties to TarEntryInfo which indicate if it is an extended header Timofey Solomko 2017-10-11 14:01:26 +03:00
  • 19b5380e01 Add ContainerEntryType extension: intializer from tar's fileTypeIndicator Timofey Solomko 2017-10-11 14:00:39 +03:00
  • 67331531a9 Add two more cases to ContainerEntryType (tar related) Timofey Solomko 2017-10-11 14:00:03 +03:00
  • b6be23eb6d Slightly update docs comments Timofey Solomko 2017-10-11 13:47:23 +03:00
  • e6c6665612 Adapt 7-zip tests to the latest changes Timofey Solomko 2017-10-11 13:32:50 +03:00
  • 9c30320d92 Add proper type setting for 7-Zip and remove isDirectory Timofey Solomko 2017-10-11 13:32:31 +03:00
  • 6417c6af73 Make type non-optional in Tar and Zip Timofey Solomko 2017-10-11 13:32:07 +03:00
  • d16f36c18e Add initializer from UnixType into ContainerEntryType Timofey Solomko 2017-10-11 13:30:58 +03:00
  • 188b39372a Extract protocols into separate files Timofey Solomko 2017-10-11 13:10:38 +03:00
  • 1fe3aed4c1 Extract ContainerEntryType into separate file and add some cases Timofey Solomko 2017-10-11 13:09:12 +03:00
  • 2370dffbdb Extract Container related protocols into separate file and rename folder Timofey Solomko 2017-10-11 13:00:03 +03:00
  • 20840aae41 Extract some types from 7-zip into separate files Timofey Solomko 2017-10-11 12:56:49 +03:00
  • 1e745e08a9 Update Zip tests Timofey Solomko 2017-10-10 16:37:08 +03:00
  • d6d29f32d4 Restore conformance of Zip classes to Container... protocols Timofey Solomko 2017-10-10 16:36:56 +03:00
  • 0a2003380d Add ZipEntryInfo class Timofey Solomko 2017-10-10 16:24:38 +03:00
  • 4e6f5f368a Extract XZ related DataWithPointer extension into separate file Timofey Solomko 2017-10-08 22:10:14 +03:00
  • 66cf5ee116 Extract 7z related BitReader extension into separate file Timofey Solomko 2017-10-08 22:07:52 +03:00
  • b0d0a90365 Update tar tests Timofey Solomko 2017-10-08 22:04:20 +03:00
  • 45ab158717 Make TarContainer conform to Container protocol Timofey Solomko 2017-10-08 22:04:05 +03:00
  • 0a180789bb Remove info-related code from TarEntry Timofey Solomko 2017-10-08 20:34:16 +03:00
  • b99b062534 Add TarEntryInfo class Timofey Solomko 2017-10-08 20:32:51 +03:00
  • 4a9fbc4ff5 Extract tar specific extensions into separate files Timofey Solomko 2017-10-08 20:31:20 +03:00
  • 9c44244b24 Remove TarError.wrongUstarVersion Timofey Solomko 2017-10-08 20:19:40 +03:00
  • e36c22f707 Fix some inconsistencies with size and data in SevenZip in different cases (dir, empty file, anti file) Timofey Solomko 2017-10-08 20:18:33 +03:00
  • f681de517b Update SevenZipTests Timofey Solomko 2017-10-08 20:03:33 +03:00
  • d8554e0131 Remove info-related properties and entryAttributes from SevenZipEntry and make it conform to ContainerEntry Timofey Solomko 2017-10-08 20:03:23 +03:00
  • a2540545c1 Conform SevenZipEntryInfo to corresponding protocol Timofey Solomko 2017-10-08 20:02:44 +03:00
  • 7a1243c3fa Make ContainerEntryInfo properties optional Timofey Solomko 2017-10-08 20:02:24 +03:00
  • 542f650433 Move some source files up in xcode project closer to container files Timofey Solomko 2017-10-08 19:52:03 +03:00
  • 76d3b9e4fa Fix warnings in tests code Timofey Solomko 2017-10-08 19:51:06 +03:00
  • bf763e53c0 Remove Container protocols conformance and make open(container:) methods return fixed types Timofey Solomko 2017-10-08 19:49:57 +03:00
  • f2807a1ec5 Start rework of Container API Timofey Solomko 2017-10-08 19:46:39 +03:00
  • 7ea25c38b1 Update XZ tests with the removal of multiUnarchive Timofey Solomko 2017-10-08 16:17:28 +03:00
  • 7b6b729480 Remove XZArchive.multiUnarchive and make unarchive work with multi-streams Timofey Solomko 2017-10-08 16:16:41 +03:00
  • 7eacfe7ab6 Extract private functions for stages of bzip2 processing Timofey Solomko 2017-10-07 15:16:21 +03:00
  • 9abb475e2b Simplify write of used bytes map and selectors used in bzip2 Timofey Solomko 2017-10-07 15:15:08 +03:00
  • 264e9b9e1e Extract private functions in bzip2 huffman code length generation Timofey Solomko 2017-10-07 15:14:00 +03:00
  • 9e02a88391 Reduce usage of for-where clause Timofey Solomko 2017-10-07 13:09:55 +03:00
  • 5da624e75f Use new data slicing in bzip2 compress Timofey Solomko 2017-10-07 12:28:03 +03:00
  • 21467899db Use new reduce function in bzip2 decompress Timofey Solomko 2017-10-07 12:27:51 +03:00
  • 5353a2d68c Rename BZip2CompressTests to BZip2CompressionTests to match file name Timofey Solomko 2017-10-07 12:27:24 +03:00
  • 58768ba466 Revert change to suffix array Timofey Solomko 2017-10-07 12:26:56 +03:00
  • 8b22ff2b6a Update code with swift 4 changes to strings Timofey Solomko 2017-10-07 12:26:11 +03:00