mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-29 11:26:44 -05:00
Start using std::filesystem::path for fusepath (#1522)
This commit is contained in:
parent
f64ff9ca1e
commit
8c649d33ee
139 changed files with 1711 additions and 1663 deletions
|
|
@ -30,14 +30,14 @@
|
|||
static
|
||||
int
|
||||
_findonfs(const Branches::Ptr &branches_,
|
||||
const std::string &fusepath_,
|
||||
const fs::path &fusepath_,
|
||||
const int fd_,
|
||||
std::string *basepath_)
|
||||
{
|
||||
int rv;
|
||||
dev_t dev;
|
||||
struct stat st;
|
||||
std::string fullpath;
|
||||
fs::path fullpath;
|
||||
|
||||
rv = fs::fstat(fd_,&st);
|
||||
if(rv < 0)
|
||||
|
|
@ -46,7 +46,7 @@ _findonfs(const Branches::Ptr &branches_,
|
|||
dev = st.st_dev;
|
||||
for(const auto &branch : *branches_)
|
||||
{
|
||||
fullpath = fs::path::make(branch.path,fusepath_);
|
||||
fullpath = branch.path / fusepath_;
|
||||
|
||||
rv = fs::lstat(fullpath,&st);
|
||||
if(rv < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue