Check out example codes for "c++ relative path to absolute". It will help you in understanding the concepts better.

Code Example 1

path absolute(const std::filesystem::path& p);

Learn ReactJs, React Native from akashmittal.com