i would like a function, that given paths to 2 directories, in either absolute or relative form, determines the path to reference directory 1 from directory 2 (or visa-versa). this could mean a lot of "../" in the result. the intended use is making relative symlinks. if the 2 directories are the same directory, the result obviously should be ".".
a plus would be support for the target to be any file system object type, not just a directory. another plus is not requiring either to actually exist, if the paths can still be resolved to absolute or to each other somehow (they might be created in the future ... such as generating a script that creates the objects and a symlink between them.
a plus would be support for the target to be any file system object type, not just a directory. another plus is not requiring either to actually exist, if the paths can still be resolved to absolute or to each other somehow (they might be created in the future ... such as generating a script that creates the objects and a symlink between them.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.