mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-22 15:58:03 +00:00
always pass std::filesystem::path to filesystem functions
This commit is contained in:
1 parent
26cce428e2
commit
9702ba83ee
10 files changed
+29
-39
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user