Equivalent to the getrelativepath from c#
Finds path from one directory to another directory. See dotNet documentation to see more
- First input is the path to the directory to start with
- Second input is the path from any directory that exists in the path in the first path to find the last directory
- The output will be a path that we need to go to get from First Input Directory to the Secodn Input Directory
- First input(path to start with) -
./aa/././bb/./cc
- Second input(path to find the directory) -
aa/cc/dd
- Result -
../../cc/