Append a relative filename to the end of a path.
Declared in <bdls_pathutil.h>
static
int
appendIfValid(
bsl::string* path,
std::string_view const& filename);
Append the specified filename to the end of the specified path if filename represents a relative path. Return 0 on success, and a non-zero value otherwise. Note that any filesystem separator characters at the end of filename or path will be discarded. See for the definition of separator.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| path | path to which filename is appended |
| filename | relative path component to append |