fix: copying issue on windows

This commit is contained in:
2026-01-10 20:12:00 +03:00
parent 3f8ca14073
commit 52911153d5
+2 -2
View File
@@ -75,7 +75,7 @@ int main(int argc, char *argv[])
remove_all(temp_dir); remove_all(temp_dir);
create_directory(temp_dir); create_directory(temp_dir);
copy(manifest_path, temp_dir); copy(manifest_path, temp_dir / "manifest");
vector<path> all_items; vector<path> all_items;
list_items(input_path, all_items); list_items(input_path, all_items);
@@ -95,7 +95,7 @@ int main(int argc, char *argv[])
if (in_array(name, FILES_TO_COPY) || (name.ends_with(".ips"))) if (in_array(name, FILES_TO_COPY) || (name.ends_with(".ips")))
{ {
cout << "Found " << name << ", copying..." << endl; cout << "Found " << name << ", copying..." << endl;
copy(item, temp_dir); copy(item, temp_dir / item.filename(), copy_options::overwrite_existing);
continue; continue;
} }
} }