Helper function for joining two paths

Synopsis

Declared in <util/fs.h>

fs::path
AbsPathJoin(
    fs::path const& base,
    fs::path const& path);

Return Value

path unchanged if it is an absolute path, otherwise returns base joined with path. Returns base unchanged if path is empty.

Parameters

Name

Description

base [in]

Base path

path [in]

Path to combine with base

Preconditions

  • Base path must be absolute

Postconditions

  • Returned path will always be absolute

Created with MrDocs