Check out example codes for "c# get folder of full ilepath". It will help you in understanding the concepts better.

Code Example 1

string fileName = @"test.txt";
    string currentDirectory = Directory.GetCurrentDirectory();
    string[] fullFilePath = Directory.GetFiles(currentDirectory, filename, SearchOption.AllDirectories);

Learn ReactJs, React Native from akashmittal.com