server : drop u8path() and use generic_string() (#31682)

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
Adrien Gallouët authored and GitHub committed 2026-11-05 08:37:13 +01:00
1 parent 7e42b95f23
commit 5a081c0a70
4 files changed
+24 -36

No files matched your search

+2 -2
View File
@@ -597,7 +597,7 @@ void server_unfinished_downloads::save() {
data["downloads"].push_back({ {"model", d.model}, {"sidecars", d.sidecars}, {"partials", partials} });
}
try {
fs_write_atomic(std::filesystem::u8path(unfinished_downloads_path()), data.dump());
fs_write_atomic(unfinished_downloads_path(), data.dump());
} catch (const std::exception & e) {
LOG_WRN("failed to record unfinished downloads: %s\n", e.what());
}
@@ -614,7 +614,7 @@ void server_unfinished_downloads::delete_partials(const std::vector<common_downl
continue;
}
std::error_code ec;
std::filesystem::remove(std::filesystem::u8path(p.path), ec);
std::filesystem::remove(p.path, ec);
}
}