Check out example codes for "rust get current directory". It will help you in understanding the concepts better.

Code Example 1

std::env::current_dir()?;

Learn ReactJs, React Native from akashmittal.com