Chilkat2-Python
Chilkat2-Python
Get the Target of a Symbolic Link
See more FileAccess Examples
Demonstrates how to get the target of a symbolic link.Note: This example requires Chilkat v9.5.0.77 or greater.
Chilkat Chilkat2-Python Downloads
import sys
import chilkat2
fac = chilkat2.FileAccess()
targetPath = fac.SymlinkTarget("qa_data/my_symlink")
if (fac.LastMethodSuccess != True):
print("Failed to get symlink target.")
sys.exit()
print("target path = " + targetPath)