Replies: 2 comments
-
Hi! extractor.extractMatching( "path/to/archive.7z", "/data/1/2/*", "out" ); Unfortunately, there's no equivalent method in At the moment, with std::vector< std::uint32_t > matchingIndices;
for ( const auto& item : reader ) {
if ( item.path().rfind( "data/1/2/", 0 ) != 0 ) { // Or C++20's starts_with method.
matchingIndices.push_back( item.index() );
}
}
reader.extractTo( "out", matchingIndices ); |
Beta Was this translation helpful? Give feedback.
-
I tried the BitFileExtractor method
If I use 7zip to open the archive, I see that there are files in that path within the archive, but nothing is extracted to disk when I run that function. Is there a return value for this function, or a way to tell if it successfully matched any files in the archive? |
Beta Was this translation helpful? Give feedback.
-
If I have an archive with paths, such as:
data
data/1
data/1/2
How would I extract all the files stored in data/1/2 into a directory on disk?
Beta Was this translation helpful? Give feedback.
All reactions