I'm getting some file info in my application and i'd like write them if have relative directory relationship in my application.
For example my directory: C:/files
If it's found file in;
C:/files/test1.pdf 'Output: ../test1.pdf
C:/files/190501/test2.pdf 'Output: ../190501/test2.pdf
C:/archive/180501/test3.pdf 'Output: C:/archive/180501/test3.pdf
I search on net and Path.GetRelativePath would fit my desire but it's not supported at .net 4.8 so Any help would be grateful.