Logo ROOT   6.19/01
Reference Guide
Functions
ROOT::FoundationUtils Namespace Reference

Functions

std::string GetCurrentDir ()
 
std::string MakePathRelative (const std::string &path, const std::string &base, bool isBuildingROOT=false)
 

Function Documentation

◆ GetCurrentDir()

std::string ROOT::FoundationUtils::GetCurrentDir ( )
Returns
the $PWD.

Definition at line 33 of file FoundationUtils.cxx.

◆ MakePathRelative()

std::string ROOT::FoundationUtils::MakePathRelative ( const std::string &  path,
const std::string &  base,
bool  isBuildingROOT = false 
)
Returns
the relative path of path with respect to base. For instance, for path being "/a/b/c/d" and base "/a/b", returns "c/d".
Parameters
path- the input path
base- the base path to be removed from path.
isBuildingROOT- if true, it converts module directories such as core/base/inc/ to include/

Definition at line 68 of file FoundationUtils.cxx.