Hello,

what is the shortest & quickest way of finding a relative path between path1
and path2 in Ruby? (either universal or Win32 platform-specific)...

E.g.:
-----
path1 = "c:/temp/foo"
path2 = "c:/temp/foo/dir/another_dir"
path3 = "c:/special_dir"
path4 = "d:/dir"

rel_path(path1, path2) -> "dir/another_dir"

rel_path(path2, path1) -> "../.."

rel_path(path2, path3) -> "../../../special_dir"

rel_path(path1, path4) -> Exception - not possible
-----

Thank you for your help!

Cheers,

	Milan