mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-23 03:26:02 +08:00
fs::make_path should check for forward slashes, add if missing
This commit is contained in:
parent
16fe0cf90c
commit
bbc4b594fe
|
@ -138,7 +138,10 @@ namespace fs
|
||||||
make_path(const string base,
|
make_path(const string base,
|
||||||
const string suffix)
|
const string suffix)
|
||||||
{
|
{
|
||||||
return base + suffix;
|
if(*base.rbegin() == '/' ||
|
||||||
|
*suffix.rbegin() == '/')
|
||||||
|
return base + suffix;
|
||||||
|
return base + '/' + suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Reference in New Issue
Block a user