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. 3
      src/fs.cpp

3
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)
{ {
if(*base.rbegin() == '/' ||
*suffix.rbegin() == '/')
return base + suffix; return base + suffix;
return base + '/' + suffix;
} }
bool bool

Loading…
Cancel
Save