缩减代码

This commit is contained in:
2026-08-09 22:00:30 +08:00
parent 11e7affc75
commit 256c41fa9c
28 changed files with 157 additions and 1024 deletions
-7
View File
@@ -33,13 +33,6 @@ struct Archive_Write_Options {
Psc::expected<void, std::string> validate_archive_layout_from_memory(const char* data, std::size_t size,
const Archive_Layout_Rules& rules);
void unarchive_file(const std::filesystem::path& zipPath, const std::filesystem::path& outDir);
void unarchive_from_memory(const char* data, size_t size, const std::filesystem::path& outDir);
void archive_directory(const std::filesystem::path& dirPath, const std::filesystem::path& archive_path,
const Archive_Write_Options& options = {});
// std::string zip_directory_to_memory(const std::filesystem::path& dirPath,
// const
// std::vector<std::filesystem::path>&
// ignoreDirs);
std::string archive_directory_to_memory(const std::filesystem::path& dirPath,
const std::vector<std::string>& ignorePatterns,
const Archive_Write_Options& options = {});