24#include "AstUtil/CompressorInterface.hpp"
25#include "AstUtil/FileSystem.hpp"
26#include "AstUtil/StringView.hpp"
27#include "AstUtil/ArchiverUtils.hpp"
49 static errc_t writeFileEntry(FILE* dst,
const std::string& name,
50 const std::string& filePath);
53 static errc_t writeDirectoryEntry(FILE* dst,
const std::string& name);
56 static errc_t archiveDirectory(FILE* dst,
const fs::path& dirPath,
57 const std::string& basePath);
定义 CompressorImplTar.hpp:37
定义 CompressorInterface.hpp:36
virtual errc_t compress(StringView source, StringView target, StringView curdir={}) const =0
压缩文件或目录
virtual bool canCompress(StringView source, StringView target) const
检查该压缩实现是否能处理指定源文件/目录并生成目标格式
定义 CompressorInterface.cpp:26
定义 FileSystemSimple.hpp:67