USB_Config_Vendor/CC_SDK/Include/Environment/zlib/CCZip.h

33 lines
801 B
C
Raw Normal View History

2026-02-03 14:36:30 +08:00
#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