79 Commits

Author SHA1 Message Date
Antonios Barotsis
e989db7a3a Added buffering 2024-04-01 10:58:35 -03:00
João Marcos P. Bezerra
a7a65d2510 Report errors for non-UTF-8 entries in Zip and 7z 2023-11-25 21:33:22 -03:00
João Marcos P. Bezerra
8483739184 Minor refactor to archive handling code 2023-11-25 21:33:22 -03:00
Flat
97b4356aa8 feat: implement 7zip support for compression and decompression
This also fixes symlink canonicalization for Windows and fixes UI tests on Windows.
2023-11-25 21:33:22 -03:00
João M. Bezerra
cbd327aad7 replace usage of ubyte by our own Bytes formatter 2023-09-04 21:15:57 -03:00
João M. Bezerra
20f38390c6 fix: handle Zip when modified times are missing 2023-06-04 17:19:23 -03:00
João M. Bezerra
d926e0f00a minor, use Try 2023-04-16 22:58:03 -03:00
figsoda
40b0b7b364 fix deprecation warning 2023-03-11 16:33:42 -05:00
figsoda
58da7dbf34 always use zip64 2023-01-31 18:42:32 -05:00
figsoda
50573f9d91 zip: fix compression of files larger than 4GB 2023-01-31 10:48:48 -05:00
Vinícius R. Miguel
3bb0e57ed4 Stop keeping track of the names of unpacked files 2023-01-05 15:52:21 -03:00
Vinícius R. Miguel
d99266e1ce Use ubyte instead of humansize 2023-01-05 14:49:46 -03:00
Vinícius R. Miguel
2caeb1004c refac: add support for Windows in EscapedPathDisplay 2023-01-05 13:39:06 -03:00
Vinícius R. Miguel
0deb18289a refac: use BStr to display possibly non-UTF8 byte sequences 2023-01-05 12:46:29 -03:00
a-moreira
0ceb84d5cf better args order, fmt 2022-12-18 22:56:13 -03:00
a-moreira
e26323bd99 add cli option to (de)compress quietly 2022-12-18 22:49:37 -03:00
figsoda
13fab6d241 remove progress feature 2022-10-15 23:03:20 -04:00
João M. Bezerra
a29ff3c637 fix error message when compressing zip archive 2022-10-15 22:22:52 -03:00
figsoda
afdbf178ed fix infinite compression if output file is inside the input folder 2022-10-13 21:05:15 -04:00
figsoda
d4766c4bf3
Merge branch 'main' into rewrite-progress 2022-10-13 11:37:09 -04:00
figsoda
51855948f1 add OutputLine trait for performance improvements 2022-10-13 11:31:43 -04:00
figsoda
dd6ab2aa6e rename out to log_out 2022-10-13 10:27:04 -04:00
figsoda
2f4404e658 use humansize instead of Bytes 2022-10-12 22:33:41 -04:00
figsoda
8b0f4f3ee4 rewrite progress module 2022-10-12 20:49:33 -04:00
figsoda
09d390608f set last modified time during zip compression 2022-10-11 22:01:13 -04:00
João M. Bezerra
a2c91c4248 minor tweaks 2022-10-11 22:09:39 -03:00
João M. Bezerra
71893aafeb Refactor the way we set last modified times
Last modified time is a piece of metadata that is available when
decompressing an archive
2022-10-11 22:09:39 -03:00
figsoda
5dc8d3efed fix: apply clippy lints 2022-10-03 20:56:48 -04:00
figsoda
0519b5663e fix: respect file permissions when compressing zip files 2022-09-01 16:17:29 -04:00
João M. Bezerra
97c4387fcf minor simplifications and renamings 2022-06-04 14:04:31 -03:00
João M. Bezerra
14025c6816 remove use_small_heuristics = "Max" from rustfmt
and update edition to 2021
2022-06-04 13:06:52 -03:00
João M. Bezerra
4d518b7056 small refactor and renamings 2022-06-04 12:47:17 -03:00
Vinícius R. Miguel
7dd016aa54 feat: recover last modified time when unpacking zip archives 2022-02-05 23:08:21 -03:00
Vinícius Miguel
336fc97831
feat: allow ignoring hidden files and files matched by .gitignore files (#245) 2022-01-16 23:30:26 -03:00
João Marcos Bezerra
308b8f7e90
Merge pull request #225 from sigmaSd/list
List command: print file immediatly after it is processed
2021-12-20 13:11:15 -03:00
Nbiba Bedis
40bb56bf79 Mark files as directories when compressing to zip regardless if they're empty or not 2021-12-14 09:18:16 +01:00
Nbiba Bedis
569f39c6c9 Use a new thread for listing 2021-12-09 09:28:44 +01:00
Nbiba Bedis
2adcfb364f List command: print file immediatly after it iss processed 2021-12-09 08:24:49 +01:00
Nbiba Bedis
734ffd4331 Compile on stable 2021-12-08 11:58:02 +01:00
Nbiba Bedis
34c09d5d69 Ignore broken symlinks when compressing 2021-12-08 11:46:30 +01:00
Nbiba Bedis
0976970e8c Add progress bar for compressing/decompressing 2021-11-25 11:57:47 +01:00
João M. Bezerra
b31f407011 Reformat code 2021-11-24 23:45:12 -03:00
Anton Hermann
437b0c42ff Make ZIP comment show in accessibility mode 2021-11-23 18:43:21 +01:00
Anton Hermann
1030eb0de9 Improve accessibility code and comment decisions why some info is (in)accessible 2021-11-23 11:53:20 +01:00
Anton Hermann
40cee89bab Implement accessibility mode which reduces visual noise 2021-11-13 01:47:08 +01:00
Spyros Roum
c33d896743 Change clear_path to return Result<bool>
So `Ok(true)` means the path is clear while `Ok(false)` means the user doesn't want to overwrite
2021-11-11 15:58:51 +02:00
Spyros Roum
eb9a99fff3 Create util for clearing a path 2021-11-11 11:36:26 +02:00
João M. Bezerra
05d83a3726 Utf8 checks, using references and avoid allocating
And add docs
2021-11-10 19:59:36 -03:00
João M. Bezerra
f1c0c82323 Move utf8 utils from zip.rs to utils module 2021-11-10 19:47:36 -03:00
João M. Bezerra
ed0e225219 Improve error message for Zip invalid encoding errors
And refactor function implementations
2021-11-10 19:45:27 -03:00