Distribution_Service/CC_SDK/Include/Environment/zlib/CCZip.h
2025-11-11 17:46:19 +08:00

33 lines
801 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef CC_ZIP_H
#define CC_ZIP_H
#include "string"
#include "unzip.h"
#include "zip.h"
#define FILE_BUFFER_SIZE 4096
namespace CTL {
class Zip {
public:
private:
public:
/**
* \brief 解压缩zip文件
* \param zipPath zip文件的路径
* \param outputDir 输出目录的路径
* \return 如果解压成功则为True
*/
static bool UnzipFile(const std::string& zipPath, const std::string& outputDir);
/**
* \brief 压缩文件夹
* \param folderPath 文件夹的路径
* \param zipPath 输出zip文件的路径
* \return 如果压缩成功则为True
*/
static bool ZipFolder(const std::string& folderPath, const std::string& zipPath);
};
}
#endif