blob: 38bfe7d8ab0acb77c3ec0c46b19fb4ea4ad28149 [file] [log] [blame]
Václav Kubernát94938b72018-05-04 15:12:24 +02001/*
2 * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
3 * Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
4 *
5 * Written by Václav Kubernát <kubervac@fit.cvut.cz>
6 *
7*/
8#include "utils.hpp"
9
10std::string joinPaths(const std::string& prefix, const std::string& suffix)
11{
12 if (prefix.empty() || suffix.empty())
13 return prefix + suffix;
14 else
15 return prefix + '/' + suffix;
16}