Browse Source

fs::make_path should check for forward slashes, add if missing

pull/36/head 1.0.2
Antonio SJ Musumeci 11 years ago
parent
commit
bbc4b594fe
  1. 5
      src/fs.cpp

5
src/fs.cpp

@ -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…
Cancel
Save