MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / decompressZip

Function decompressZip

source/MRMesh/MRZip.cpp:483–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483Expected<void> decompressZip( const std::filesystem::path& zipFile, const std::filesystem::path& targetFolder, const char * password )
484{
485 MR_TIMER;
486 int err;
487 AutoCloseZip zip( utf8string( zipFile ).c_str(), ZIP_RDONLY, &err );
488 if ( !zip )
489 return unexpected( "Cannot open zip, error code: " + std::to_string( err ) );
490
491 return decompressZip_( zip, targetFolder, password );
492}
493
494Expected<void> decompressZip( std::istream& zipStream, const std::filesystem::path& targetFolder, const char * password )
495{

Callers 4

TESTFunction · 0.85
makeObjectTreeFromZipFunction · 0.85
deserializeObjectTreeFunction · 0.85

Calls 3

utf8stringFunction · 0.85
decompressZip_Function · 0.85
unexpectedFunction · 0.70

Tested by 1

TESTFunction · 0.68