always pass std::filesystem::path to filesystem functions

This commit is contained in:
orignal committed 2026-11-08 12:18:17 -05:00
1 parent 26cce428e2
commit 9702ba83ee
10 files changed
+29 -39

No files matched your search

+2 -2
View File
@@ -595,7 +595,7 @@ namespace client
if (tunConf.empty ())
tunConf = i2p::fs::DataDirPath ("tunnels.conf").string ();
if (i2p::fs::Exists (tunConf))
if (std::filesystem::exists (tunConf))
{
LogPrint(eLogDebug, "Clients: Tunnels config file: ", tunConf);
ReadTunnels (tunConf, numClientTunnels, numServerTunnels);
@@ -605,7 +605,7 @@ namespace client
if (tunDir.empty ())
tunDir = i2p::fs::DataDirPath ("tunnels.d").string ();
if (i2p::fs::Exists (tunDir))
if (std::filesystem::exists (tunDir))
{
std::vector<std::filesystem::path> files;
if (i2p::fs::ReadDir (tunDir, files))