Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support user-defined extension filtering #9

Open
lenny20 opened this issue Jun 3, 2020 · 2 comments
Open

Support user-defined extension filtering #9

lenny20 opened this issue Jun 3, 2020 · 2 comments
Labels
question Further information is requested

Comments

@lenny20
Copy link

lenny20 commented Jun 3, 2020

Some extended types of files are redundant and even dangerous.
I hope that 7z can support user-defined extension filtering like WinRAR, so that certain files will not be decompressed.
Thank you!

@myfreeer
Copy link
Owner

myfreeer commented Jun 4, 2020

The feature is supported in command-line version, via the -x switch.

If you are requesting this feature on gui, this issue should goto the official or zstd repo, this repo is build script for 7-zip, not a fork.

Below is the 7-zip document of -x switch.

-x (Exclude filenames) switch
Specifies which filenames or wildcarded names must be excluded from the operation.

Multiple exclude switches are supported.

Syntax
-x[<recurse_type>]<file_ref>

<recurse_type> ::= r[- | 0]
<file_ref> ::= @{listfile} | !{wildcard}

See -i (Include) switch description for information about option parameters.

Examples
7z a -tzip archive.zip .txt -x!temp.

adds to the archive.zip all .txt files, except temp. files.

7z a archive.7z Folder1\ -xr!*.png

adds to the archive.7z all files from Folder1 and its subfolders, except *.png files.

Commands that can be used with this switch
a (Add), d (Delete), h (Hash), e (Extract), l (List), t (Test), rn (Rename), u (Update), x (Extract with full paths)

See also
Switches: -r (Recurse), -i (Include)

@myfreeer myfreeer added the question Further information is requested label Jun 4, 2020
@lenny20
Copy link
Author

lenny20 commented Jun 7, 2020

Thank you first!
I have known that, and I’m sure you never use it that way. I talking about GUI version.
I have posted it to 7-Zip-zstd fork. SourceForge cannot register. Could you help me to feed this requirement to the official forum?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants