K
kj
Is there a module (or built-in) that will take an arbitary Unix
filename specification (either absolute or relative) and return
the "canonical" absolute full path to the file? For example:
input: ~jones/../foo/../../bar/./baz//frobozz/
output: /bar/baz/frobozz
(where, in this case /bar/baz/frobozz is actually a directory).
TIA!
kj
filename specification (either absolute or relative) and return
the "canonical" absolute full path to the file? For example:
input: ~jones/../foo/../../bar/./baz//frobozz/
output: /bar/baz/frobozz
(where, in this case /bar/baz/frobozz is actually a directory).
TIA!
kj