mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add file.create_zip(...)
This commit is contained in:
parent
5f71c82cc4
commit
a086b726c6
2 changed files with 13 additions and 1 deletions
|
|
@ -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 + "/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue