MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / AddDirectory

Method AddDirectory

tools/rc/ResourceCompiler.cpp:573–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void
574ZipArchive::AddDirectory(std::string const& dirName)
575{
576 assert(dirName[dirName.length() - 1] == '/');
577 if (archivedDirs.insert(dirName).second)
578 {
579 std::clog << "\t new dir entry " << dirName << std::endl;
580 // The directory entry does not yet exist, so add it
581 if (!mz_zip_writer_add_mem(writeArchive.get(), dirName.c_str(), NULL, 0, MZ_NO_COMPRESSION))
582 {
583 throw std::runtime_error("zip add_mem error");
584 }
585 }
586}
587
588ZipArchive::~ZipArchive()
589{

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected