SysTutorials Forums QA `readlink -m` equivalent function in Python to get canonical file name

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

Reply To: `readlink -m` equivalent function in Python to get canonical file name
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Please share if you like this post: