Marc Cornellà
3f477e5da5
fix(extract): extraction to directory for single-file .gz ( #11852 )
3 years ago
Marc Cornellà
b06663df23
feat(extract): add support for `.zlib` and `.exe` files ( #11085 )
...
Fixes #11085
3 years ago
Marc Cornellà
3a01d7df82
fix(extract): fix extract dir naming conflicts
...
Fixes #11642
3 years ago
Marc Cornellà
49d34d00cd
fix(extract): fix conflict if compressed file has a folder of the same name
...
This change fixes the case where the compressed file (e.g. tools.tgz) only
contains a folder with the same name (e.g. tools) in its root folder.
tools.tgz:
|- tools
|- fileA.txt
|- fileB.txt
\- fileC.txt
In that case, the "smart" folder creation mechanism will extract the files in
a folder "tools", and this extraction folder will contain a single folder with
the same name.
Before this fix, the tool would try to move out the inside folder to the parent
one, but there would already be a folder named "tools", so it would generate a
conflict.
This change first renames the inside folder to a random string, and only then
it is moved outside and the old extraction folder is deleted.
3 years ago
Marc Cornellà
d47e1d65f6
fix(extract): safely remove extract directory
...
The previous code would remove the extract directory if the command failed.
This could be bad because we're not checking if the extract directory
already existed (since we're using `mkdir -p`), so it could be possible
that the extract operation failed, and we'd be removing a directory that
already existed and had files in it.
This change only removes the directory if there are no files in it, regardless
of whether the extract operation was successful or not. This is much safer.
3 years ago
Marc Cornellà
75405b7b0a
feat(extract): always extract files into its own folder ( #11596 )
3 years ago
Filippo Bonazzi
a4f08ad238
feat(extract): support `obscpio` format ( #11511 )
...
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
3 years ago
david
9b91e82560
feat(extract): add `zpaq` support ( #11478 )
3 years ago
xiagw
4b5076b5ec
feat(extract): add `pbzip2` and `pixz` ( #11435 )
3 years ago
Marc Cornellà
0b32e4b25f
style(extract): adopt main code style guide and refactor variables
5 years ago
Marc Cornellà
10a00085d0
fix(extract): don't push entries to dirstack when extracting rpm and deb files
5 years ago
Marc Cornellà
a2f1ef69b5
fix(extract): correctly extract rpm files on other directories
5 years ago
Xeonacid
0b506fea0c
feat(extract): add cpio support
5 years ago
Alexander Kapshuna
59a9b453d3
fix(extract): support unpacking deb file from different directory
5 years ago
Marc Cornellà
6dc937ff68
feat(extract): add suport for .cab files via `cabextract`
5 years ago
Corey Hinkle
706b2f3765
feat(extract): add support for .ear files ( #9901 )
...
Co-authored-by: Corey Hinkle <corey.hinkle@five9.com>
5 years ago
Thi Doãn
322e592c38
extract: add IPA to extractable filetypes ( #9117 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
6 years ago
Aloxaf
78b07e92fd
extract: add lz4 support ( #8510 )
6 years ago
Marc Cornellà
6bac9eb103
extract: add lrz support ( #8500 )
6 years ago
Mustaqim Malim
ad1169bf39
extract: add tar.lz support ( #8479 )
6 years ago
Filipe Nascimento
1761685d3e
extract: add zstd support ( #8469 )
6 years ago
Richard Pöttler
68c4c06283
extract: add RPM archive support ( #8347 )
...
Also more quiet extraction. -D for cpio was not used due to additional
output.
6 years ago
Marc Cornellà
24726678dd
extract: keep *.gz files with pigz and gunzip
...
Fixes #8368
6 years ago
Ing. Jan Kaláb
586ca16902
extract: add AAR Android archive support ( #7511 )
7 years ago
Alexander Kapshuna
5fbf912093
extract: whl files support ( #7045 )
8 years ago
kapsh
91b771914b
extract: check file extension as lowercase ( #6158 )
...
Fixes #6157
8 years ago
David Leitner
3f654922de
Update extract.plugin.zsh ( #6516 )
8 years ago
Marc Cornellà
68425c266a
extract: replace basename&sed w/ zsh variable expansion syntax
...
`${var:t:h}` uses:
- `${var:t}` which acts as `basename`.
- `${var:r}` which removes the extension.
See http://zsh.sourceforge.net/Doc/Release/Expansion.html#Modifiers
10 years ago
Marc Cornellà
f12cb5a697
extract: fix extraction of deb packages with data.tar.xz
10 years ago
Marc Cornellà
09d95251a7
extract: fix styling
10 years ago
Hugh Wang
a42a3eead7
Recognize Firefox addon and Android packages.
10 years ago
Neal
f1d12c598b
Add .ipsw to the extract plugin.
11 years ago
Will Boyce
db8eacf6fd
use pigz if available in extract plugin
11 years ago
Frank Behrens
6fc241b0d2
extract plugin will unzip *.sublime-package files
12 years ago
Timo Sand
671db71d21
Added '.jar'
13 years ago
Timo Sand
387de3a57e
Added '.war' extension to unzip
13 years ago
ripdog
2264c51355
Update plugins/extract/extract.plugin.zsh
...
Cause unrar to preserve directory structure. (Why is only unrar different?!)
13 years ago
Daniel Bye
b73f95ab26
Removed the assignments to fpath as well, since that's all handled in the .oh-my-zsh/oh-my-zsh.sh boot script.
14 years ago
Daniel Bye
c04b4abe91
Removed calls to compinit in the extract and the bundler plugins. compinit should only be called once, after all modules, libs, etc are imported.
14 years ago
Sorin Ionescu
a5c383258b
Handle tar.xz and tar.lzma better (credit: @gwjo ).
15 years ago
Sorin Ionescu
1db6575f14
Added extract plugin.
15 years ago