mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-26 10:13:50 +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,
|
||||
const string suffix)
|
||||
{
|
||||
return base + suffix;
|
||||
if(*base.rbegin() == '/' ||
|
||||
*suffix.rbegin() == '/')
|
||||
return base + suffix;
|
||||
return base + '/' + suffix;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in New Issue
Block a user