João Marcos Bezerra
ed68e17eb8
Merge pull request #206 from sigmaSd/refactor
...
Simplify decompress function
2021-11-14 15:44:09 -03:00
Nbiba Bedis
b0ab145162
Add comment
2021-11-14 19:12:46 +01:00
Nbiba Bedis
11ee27ea25
Ask to overwrite if the user specified dir exists
2021-11-14 19:06:49 +01:00
João Marcos Bezerra
3b8333a063
Merge pull request #193 from sigmaSd/ub
...
Skip compressing file if its the same file as the output
2021-11-14 14:03:39 -03:00
Nbiba Bedis
85968ea841
Simplify decompress function
2021-11-14 17:59:40 +01:00
Nbiba Bedis
3e52eb6deb
use fs_err canonicalize
2021-11-14 07:21:54 +01:00
João Marcos Bezerra
92372813a5
Fix error with format infer
2021-11-14 02:14:51 -03:00
João Marcos Bezerra
fe4b265d9f
Merge branch 'master' into infer2
2021-11-14 02:11:28 -03:00
Vinícius Rodrigues Miguel
afc8367230
Simplify (optimize?) several file inferring functions
2021-11-14 01:53:59 -03:00
Nbiba Bedis
08b2314d8f
display xz when inferring lzma
2021-11-13 17:13:51 +01:00
Nbiba Bedis
0660c2fe59
Remove Lzip because its incorrect, and improve extention comparison
2021-11-13 09:46:08 +01:00
Anton Hermann
c1add95e70
Fix warnings in doc comments
...
Escape square brackets comments containing "[INFO]", "[WARNING]", "[ERROR]"
Suppress automatic link markup warning
2021-11-13 00:07:17 +01:00
Nbiba Bedis
28b512ae3f
Skip compressing file if its the same file as the output
2021-11-12 11:51:44 +01:00
João Marcos Bezerra
6147d13259
Add missing period
2021-11-11 11:32:36 -03:00
figsoda
6d393b3c97
add link to github to help message
2021-11-11 09:15:59 -05:00
João Marcos Bezerra
180f63209a
Merge pull request #190 from SpyrosRoum/fix-decompressing-failing-to-create-dir
...
Fix not overwriting files/dirs when trying to create a directory
2021-11-11 11:08:41 -03:00
João Marcos Bezerra
6a56e1ca46
Merge pull request #189 from figsoda/help-supported-formats
...
add supported formats to help message
2021-11-11 11:04:07 -03: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
d1d781dded
Clear path before creating a dir
2021-11-11 11:36:40 +02:00
Spyros Roum
eb9a99fff3
Create util for clearing a path
2021-11-11 11:36:26 +02:00
figsoda
043a04bf51
add supported formats to help message
2021-11-10 22:04:00 -05:00
figsoda
5616231af9
simplify colors
2021-11-10 21:59:07 -05:00
figsoda
1fb9ef5abc
remove trailing blank lines in error messages
2021-11-10 21:56:04 -05:00
João M. Bezerra
162e1c1259
Fix error message panic when cannot list non-archive files
2021-11-10 20:24:57 -03: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
b7c6589864
Small docs update
2021-11-10 10:09:54 -03:00
João M. Bezerra
f09f1cecba
Merging dialogs.rs with question.rs
2021-11-10 09:57:51 -03:00
João M. Bezerra
a531d44e2b
Move colors module to it's own file
2021-11-10 09:55:44 -03:00
João M. Bezerra
63cfeb26ef
Add accidentally removed link in docs
2021-11-10 09:52:20 -03:00
João M. Bezerra
d27e259b26
Reorganizing src/utils, by renaming submodules
...
And moving formatting stuff out of fs.rs
2021-11-10 09:51:26 -03:00
João Marcos Bezerra
1579a482e8
Fix typo
...
DeMorgan's laws apply to disjunctions, not implications.
2021-11-10 09:06:09 -03:00
João Marcos Bezerra
1026fa19fd
Merge pull request #154 from sigmaSd/infer
...
Infer file extension when decompressing
2021-11-10 06:40:54 -03:00
João M. Bezerra
cbc87866fa
Fix zip magic numbers detection
...
And reworked detection for other formats as well
2021-11-10 06:34:05 -03:00
João M. Bezerra
16acb98b6e
Early return when can't detect extension from magic numbers
2021-11-10 06:04:31 -03:00
João M. Bezerra
552096acf0
Minor import and module exporting changes
2021-11-10 06:03:46 -03:00
Nbiba Bedis
266cf6e27a
Infer file extension when decompressing
2021-11-10 05:41:44 -03:00
figsoda
dedd254ace
switch from lz4_flex to lzzzz, enable lz4 tests
2021-11-09 21:26:04 -05:00
João Marcos Bezerra
abf1d4e3e4
Readme update ( #161 )
...
* Updating badges
* Reformatted support table to be monospaced
* Add first benchmark to the readme
And fixed a typo
* Some readme rewording
* Removing readme redundant compression example
* Change badges to have squared corners
* readme: increase headers size by one
* Slight modifications to the README
* Specify dependencies and tweak some other stuff
* Add MSRV
Co-authored-by: Vinícius Miguel <36349314+vrmiguel@users.noreply.github.com>
2021-11-06 01:29:56 -04:00
Vinícius Miguel
43fb274956
Optimize strip_cur_dir
( #167 )
2021-11-05 23:49:35 -04:00
Vinícius Miguel
739a52f00e
Refactor utils into a module ( #166 )
2021-11-05 22:04:00 -04:00
João Marcos Bezerra
d1988b4ba2
Remove import comments
2021-11-04 01:08:09 -03:00
Vinícius Rodrigues Miguel
e81fafc3d3
Make Extension
non-exhaustive
2021-11-03 18:08:39 -03:00
Vinícius Rodrigues Miguel
75ece05dbf
Avoid allocating in nice_directory_display
when possible
2021-11-03 18:08:22 -03:00
João Marcos Bezerra
2af0464ed3
Merge pull request #153 from figsoda/typo
...
Fix zsh shell completions
2021-11-03 13:15:40 -03:00
Vinícius Rodrigues Miguel
a798d20106
extension: Use hardcoded slices instead of Vecs
when creating an Extension
2021-11-03 12:35:29 -03:00
figsoda
cd84161b28
fix typo
2021-11-02 18:51:33 -04:00
João Marcos Bezerra
a1c4f0373f
Merge pull request #150 from figsoda/lz4
...
Add support for lz4
2021-11-02 18:45:53 -03:00
figsoda
27d8e64192
minor improvements
2021-11-02 17:37:24 -04:00