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
João M. Bezerra
27b6970eda
Updating rustfmt
2021-11-02 16:15:36 -03:00
João M. Bezerra
9a9488fcd2
Merge branch 'command_list'
2021-11-02 15:31:01 -03:00
Spyros Roum
7f5ff0faf1
Fix archives panicking when asked to overwrite file
2021-11-02 13:34:38 +02:00
Spyros Roum
8ef1b25b12
Ask to overwrite dirs when decompressing archives
2021-11-02 12:38:10 +02:00
Anton Hermann
9919c72347
Merge branch 'master' into command_list
2021-11-01 12:32:55 +01:00
Anton Hermann
e8f24b7178
list: highlight directories (either coloring them or adding a /)
2021-11-01 12:15:36 +01:00
Anton Hermann
30ebcf4f9e
Implement command 'list' to show archive contents
2021-11-01 08:53:03 +01:00
João Marcos Bezerra
95d38e99f6
Merge branch 'master' into issue-32
2021-10-31 03:01:41 -03:00
figsoda
614f2aa6d5
Merge branch 'master' into completions-manpage
2021-10-30 16:59:24 -04:00
Gabriel Simonetto
704a4efdd7
Merge branch 'master' into issue-56
2021-10-30 11:31:09 -03:00
Gabriel Simonetto
09b050d836
Introduce fs_err as a replacement for fs
2021-10-30 11:17:38 -03:00
Gabriel Simonetto
0fdef287c4
Warn for missing docs, and add necessary docs
2021-10-27 00:08:00 -03:00
figsoda
d6054ba3ee
move QuestionPolicy to lib
2021-10-21 19:13:29 -04:00
Anton Hermann
10f7462b8b
Introduce new type for policy on how to handle questions
2021-10-21 23:31:53 +02:00
João Marcos Bezerra
e17eb9595e
Merge branch 'master' into migrate-to-clap
2021-10-20 14:04:19 -03:00
TATSUNO Yasuhiro
4404b91a23
refactoring: Extract function ( #116 )
2021-10-20 01:10:10 -03:00
TATSUNO Yasuhiro
2e6cd893dc
Omit "./" at the start of the path ( #109 )
2021-10-19 12:57:11 -03:00
Spyros Roum
e24c9ce931
Replace oof with clap
2021-10-19 14:42:07 +03:00
Vinícius Miguel
14961bed65
Check if a folder is being compressed to a non-archive format ( #79 )
2021-10-07 17:09:33 -03:00
Vinícius Rodrigues Miguel
a739b5a482
Re-add "Compressing" output to Tar and make Tar and Zip compression use the info
macro
2021-10-07 11:36:54 -03:00
Vinícius Rodrigues Miguel
d4862e2b6f
test: check the resulting compressed files through MIME types
2021-10-06 23:54:20 -03:00
Gabriel Simonetto
0c65fbd2d4
Allow empty dirs on zip
2021-10-02 17:14:16 -03:00
Vinícius Rodrigues Miguel
df062f4155
zip: optimize UTF-8 checks on Unix, remove unneeded Clone
2021-10-01 19:13:43 -03:00
Vinícius Rodrigues Miguel
17d8959a0f
unix: if setting permission fails, return an error instead of panicking
2021-10-01 12:00:52 -03:00
Vinícius Rodrigues Miguel
55aa65dcea
Reduced repetition caused by [INFO]
printing
2021-09-17 00:22:41 -03:00
Vinícius Rodrigues Miguel
eabaac0145
Run rustfmt
2021-09-16 21:35:18 -03:00
João M. Bezerra
c9d4eea403
Minor renaming
2021-08-13 02:14:28 -03:00
João M. Bezerra
bb93e46535
Reworked compression
...
Now works with multiple formats, like
archive.zip.gz.lz.gz.gz2.xz
Now with minimum in-memory copying, compressing and decompressing (with
exception to .zip, due to the format limitations) is all done directly
into the final destination file.
2021-08-03 21:18:22 -03:00
João M. Bezerra
ac4948abf7
Decompression: multiple formats, no extra copying
...
Rewrote decompression to use chained decoders, creating a stream and
avoiding in-memory decompression, which caused redundant copying.
Now ouch supports any number of extensions as decompressing formats, not
only two.
2021-08-03 16:58:21 -03:00