MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / addDirectory

Method addDirectory

src/utilities/core/ZipFile.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void ZipFile::addDirectory(const openstudio::path& localDir, const openstudio::path& destinationDir) {
58 // following conventions in openstudio::copyDirectory
59
60 for (const auto& file : openstudio::filesystem::recursive_directory_files(localDir)) {
61 const auto srcItemPath = localDir / file;
62 const auto dstItemPath = destinationDir / file;
63 addFile(srcItemPath, dstItemPath);
64 }
65}
66
67} // namespace openstudio

Callers 1

zipDirectoryFunction · 0.80

Calls 1

Tested by

no test coverage detected