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

Code Example 1

String RelativePath = AbsolutePath.Replace(Request.ServerVariables["APPL_PHYSICAL_PATH"], String.Empty);

Learn ReactJs, React Native from akashmittal.com