Start using std::filesystem::path for fusepath (#1522)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run

This commit is contained in:
trapexit 2025-09-17 23:51:16 -04:00 • committed by GitHub
parent f64ff9ca1e
commit 8c649d33ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
139 changed files with 1711 additions and 1663 deletions

View file

@ -18,12 +18,13 @@
#include "ef.hpp"
#include "errno.hpp"
#include "from_string.hpp"
#include "fs_path.hpp"
#include "nonstd/string.hpp"
#include "num.hpp"
#include "rwlock.hpp"
#include "str.hpp"
#include "to_string.hpp"
#include "version.hpp"
#include "nonstd/string.hpp"
#include <algorithm>
#include <cstdint>
@ -428,15 +429,15 @@ Config::finish_initializing()
}
bool
Config::is_rootdir(const char *fusepath_)
Config::is_rootdir(const fs::path &fusepath_)
{
return str::eq(fusepath_,"/");
return fusepath_.empty();
}
bool
Config::is_ctrl_file(const char *fusepath_)
Config::is_ctrl_file(const fs::path &fusepath_)
{
return str::eq(fusepath_,"/.mergerfs");
return (fusepath_ == ".mergerfs");
}
bool