Is there an easy way in Ruby to find a canonical file path out of a messy file path?
For example:
a/b/../c/xis the same asa/c/xa/./b/c/xis the same asa/b/c/xa/./b/../../c/xis the same asc/x
Any simple way to do this?
Is there an easy way in Ruby to find a canonical file path out of a messy file path?
For example:
a/b/../c/x is the same as a/c/xa/./b/c/x is the same as a/b/c/xa/./b/../../c/x is the same as c/xAny simple way to do this?