implement Path::join()
This commit is contained in:
1 parent
863fb2018b
commit
eb12420155
2 files changed
+10
-2
No files matched your search
+4
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user