Relative path utility function
Given a directory and a file, return a relative path from the directory to the file, or the unmodified file path if the file does not appear to be in the directory.
relative_to(dir, file)
dir |
Directory |
file |
File |
Relative path from the directory to the file (or the unmodified file path if the file does not appear to be in the directory).
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.