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

Extract/Extract full few files in 7z archive #3

Closed
aco7342 opened this issue Feb 6, 2015 · 1 comment
Closed

Extract/Extract full few files in 7z archive #3

aco7342 opened this issue Feb 6, 2015 · 1 comment

Comments

@aco7342
Copy link

aco7342 commented Feb 6, 2015

i need some help to make extract/extract full with filename or fileext filter.

i try use { p: '.png}, and { ax : '.png'} for exclude files, but not work., ref 7zip api document

q2s2t added a commit that referenced this issue Feb 6, 2015
@q2s2t
Copy link
Owner

q2s2t commented Feb 6, 2015

now you can use the wildcards attributes in the options. also do not forget the * when specify a wildcard.

check the last section of the README.

7z a -tzip archive.zip *.txt -x!temp.*
adds to the archive archive.zip all .txt files, except temp. files.
becomes :

sevenzip.add('archive.zip', '*.txt', {
  t: 'zip',
  x: '!temp.*'
})

http://7zip.bugaco.com/7zip/MANUAL/switches/exclude.htm

@q2s2t q2s2t closed this as completed Feb 6, 2015
@q2s2t q2s2t self-assigned this Feb 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants