23 const char * password =
nullptr );
33using ZipFileCallback = std::function<Expected<void>(
const std::string& path, std::vector<char>&& data )>;
41 const char * password =
nullptr );
78[[deprecated(
"Use compressZip( zipFile, sourceFolder, settings )" )]]
80 const std::vector<std::filesystem::path>& excludeFiles,
const char * password =
nullptr,
ProgressCallback cb = {} );
#define MRMESH_API
Definition MRMeshFwd.h:85
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:790
tl::expected< T, E > Expected
Definition MRExpected.h:31
std::function< Expected< void >(const std::string &path, std::vector< char > &&data)> ZipFileCallback
Definition MRZip.h:33
Expected< void > decompressZip(const std::filesystem::path &zipFile, const std::filesystem::path &targetFolder, const char *password=nullptr)
decompresses given zip-file into given folder
Expected< void > compressZip(const std::filesystem::path &zipFile, const std::filesystem::path &sourceFolder, const CompressZipSettings &settings={})
compresses given folder in given zip-file
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
std::string password
if password is given then the archive will be encrypted
Definition MRZip.h:60
std::vector< std::filesystem::path > excludeFiles
files that should not be included to result zip
Definition MRZip.h:53
int compressionLevel
Definition MRZip.h:57
ProgressCallback cb
an option to get progress notifications and cancel the operation
Definition MRZip.h:63