mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-22 11:47:17 +00:00
always use std::filesystem::path for file path and in ReadDir
This commit is contained in:
1 parent
ac289ff03a
commit
0eee259738
7 files changed
+47
-69
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user