Comments (1)
Hi.
Sorry but I do not speak Chinese, so I had to use Google Translate, I hope I understood your issue all the same.
If I'm not mistaken, you want to extract only the files, not the folders, from an archive.
However, I'm not sure which of the following two cases you are referring to:
- Extract all the files in an archive, including those inside folders, but without maintaining the structure of the directories. Unfortunately, this is not (yet) possible with bit7z, as it always tries to recreate the folder tree as it is in the archive. However, it is a potentially useful functionality, and I hope to implement it in the next version of the library.
Or
- Extract all files, ignoring folders and their contents.
In this case, although bit7z does not directly implement this feature, you can achieve the same effect by usingBitExtractor::extractMatchingRegex(...)
with the Regular Expression^[^/\\]+$
: such regex matches only archive's files not having\
or/
in their path (hence they are not contained in any folder!).
from bit7z.
Related Issues (20)
- [Feature Request]: Testing single entry or entries in archive HOT 1
- [Bug]: Some mistakes about macros HOT 3
- [Feature Request]: Allow parent cmakelists to specify external path to the lzma-sdk
- [Bug]: split 7z files and bit7z::BitFormat::Auto HOT 3
- [Bug]: Could not deduce template argument for 'Input' HOT 3
- [Bug]: HRESULT_FROM_WIN32 in hresultcategory is a function and does not evaluate to a constant expression HOT 6
- [Feature Request]: Allow BitArchiveRead to be movable (not deleted) HOT 2
- [Bug]: Reading binary stream to determine file format code reading data exception HOT 1
- [Bug]: BIT7Z_AUTO_FORMAT is fail HOT 2
- [Bug]: bit7z::BitFormat::Zip extract Exception HOT 3
- Collision of fs namespace HOT 2
- [Feature Request]: Solid Extract to MemoryStream or List HOT 3
- [Question] BIT7Z_USE_STD_BYTE, BIT7Z_USE_NATIVE_STRING impact? HOT 6
- [Bug]: Split package preview and split compress package bug HOT 16
- [Feature Request]: Exception too long path HOT 5
- Random failure mid-extraction. HOT 2
- [Bug]: VS2019 compile error HOT 2
- [Bug]: The password is emoji compress is error. HOT 10
- [Feature Request]: [BitFormat::Auto] Why not like 7zip.exe, can uncompress any format file? HOT 1
- [Bug]: can not uncompress .iso and .doc file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit7z.