always use std::filesystem::path for file path and in ReadDir

This commit is contained in:
orignal committed 2026-11-08 08:35:03 -05:00
1 parent ac289ff03a
commit 0eee259738
7 files changed
+47 -69

No files matched your search

+3 -3
View File
@@ -607,14 +607,14 @@ namespace client
if (i2p::fs::Exists (tunDir))
{
std::vector<std::string> files;
std::vector<std::filesystem::path> files;
if (i2p::fs::ReadDir (tunDir, files))
{
for (auto& it: files)
{
if (!it.ends_with (".conf")) continue;
if (it.extension () != ".conf") continue;
LogPrint(eLogDebug, "Clients: Tunnels extra config file: ", it);
ReadTunnels (it, numClientTunnels, numServerTunnels);
ReadTunnels (it.string (), numClientTunnels, numServerTunnels);
}
}
}