Make some changes
- Add new programs - Add command line args - Add Usage to guide user on how to use programs
This commit is contained in:
parent
1089c2d110
commit
1762fc87ad
10 changed files with 465 additions and 60 deletions
|
|
@ -60,4 +60,14 @@ std::string dirname(const std::string &path)
|
|||
return path.substr(0, path.find_last_of("/"));
|
||||
}
|
||||
|
||||
std::string concatpath(const std::string &left, const std::string &right)
|
||||
{
|
||||
if (left.back() != '/' and right.front() != '/') {
|
||||
return left + '/' + right;
|
||||
}
|
||||
else {
|
||||
return left + right;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue