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
João M. Bezerra
a2c91c4248
minor tweaks
2022-10-11 22:09:39 -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
42bcc024d4
Actually use relative paths when extracting
2021-12-09 17:59:25 +01:00
Nbiba Bedis
569f39c6c9
Use a new thread for listing
2021-12-09 09:28:44 +01:00
Nbiba Bedis
b1667bd474
Remove comment
2021-12-09 08:24:49 +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
Anton Hermann
1030eb0de9
Improve accessibility code and comment decisions why some info is (in)accessible
2021-11-23 11:53:20 +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
9a9488fcd2
Merge branch 'command_list'
2021-11-02 15:31:01 -03:00
João Marcos Bezerra
73c1d9a41c
Merge pull request #141 from SpyrosRoum/fix-decompression-overwritting-files-without-asking
...
Fix decompression overwritting files without asking and failing on directories
2021-11-02 08:58:31 -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
João M. Bezerra
d2d4a929e1
Docs improvements
...
+ Removed some dead code
2021-11-02 04:57:26 -03:00
Anton Hermann
8527616729
FIX 9919c72: add doc comment, remove accidentally doubled is_archive()
2021-11-01 12:40:30 +01: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
João M. Bezerra
6c6f721f35
Solved FinalError compile errors
2021-10-30 11:17:38 -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
Spyros Roum
e24c9ce931
Replace oof with clap
2021-10-19 14:42:07 +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
e352f8bc93
Allow empty dirs on tar
2021-10-02 17:33:16 -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