readlink -m can get canonical file name by resolving every symlinks in every component of the given path recursively. In Python, the
os.readlink() function does not do so. Any equivalent function in Python to the
readlink -m command line?
Specifically, it does:
canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence