Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions 3rdparty/pzip/src/file_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ Error FileTask::reset(const fs::path& filePath, const fs::path& relativeTo) {
// 如果无法计算相对路径,使用文件名
header.name = path.filename().string();
} else {
// 加上基础目录名
fs::path baseName = relativeTo.filename();
header.name = utils::toZipPath(baseName / relPath);
header.name = utils::toZipPath(relPath);
}
} else {
header.name = utils::toZipPath(path.filename());
Expand Down