add file.create_zip(...)

This commit is contained in:
MihailRis
2025-03-17 23:16:50 +03:00
parent 5f71c82cc4
commit a086b726c6
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ static size_t write_zip(
) {
size_t entries = 0;
for (const auto& entry : io::directory_iterator(folder)) {
auto name = entry.pathPart().substr(root.length() + 1);
auto name = entry.pathPart().substr(root.length());
auto last_write_time = io::last_write_time(entry);
if (io::is_directory(entry)) {
name = name + "/";