* @brief Join a pattern with a base path. * * @param basepath The base path to join the pattern to. * @param pattern The pattern to join. * @return The pattern appended to the base path with a separator if the pattern is a relative * path name, otherwise just returns pattern. */
| 163 | * path name, otherwise just returns pattern. |
| 164 | */ |
| 165 | static std::string joinRelativePattern(const std::string &basepath, const std::string &pattern) |
| 166 | { |
| 167 | if (isRelativePattern(pattern)) |
| 168 | return Path::join(basepath, pattern); |
| 169 | return pattern; |
| 170 | } |
| 171 | |
| 172 | protected: |
| 173 | class PathIterator; |
no test coverage detected