mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fix rename'ing to local device
This commit is contained in:
parent
3b6c74878c
commit
ec38a9c783
2 changed files with 7 additions and 5 deletions
10
src/fs.cpp
10
src/fs.cpp
|
|
@ -136,12 +136,12 @@ namespace fs
|
|||
|
||||
string
|
||||
make_path(const string base,
|
||||
const string fusepath)
|
||||
const string suffix)
|
||||
{
|
||||
if(*base.rbegin() == '/' ||
|
||||
*fusepath.rbegin() == '/')
|
||||
return base + fusepath;
|
||||
return base + '/' + fusepath;
|
||||
if(suffix[0] == '/' ||
|
||||
*base.rbegin() == '/')
|
||||
return base + suffix;
|
||||
return base + '/' + suffix;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue