implement Path::join()

This commit is contained in:
josh committed 2014-06-18 23:49:04 -04:00
1 parent 863fb2018b
commit eb12420155
2 files changed
+10 -2

No files matched your search

+4 -2
View File
@@ -22,8 +22,10 @@ namespace jes
Path Path::join(const Path & other)
{
// TODO
return "";
if (m_path.size() > 0 && *m_path.rbegin() == '/')
return Path(m_path + other.m_path);
else
return Path(m_path + '/' + other.m_path);
}
void Path::clean()