[#BloombergLP-bdls-PathUtil-appendIfValid-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/PathUtil.adoc[PathUtil]::appendIfValid :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<bdls_pathutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int appendIfValid( xref:bsl/string.adoc[bsl::string]* path, std::string_view const& filename); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#