Go
Go
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 Go Downloads
fac := chilkat.NewFileAccess()
targetPath := fac.SymlinkTarget("qa_data/my_symlink")
if fac.LastMethodSuccess() != true {
fmt.Println("Failed to get symlink target.")
fac.DisposeFileAccess()
return
}
fmt.Println("target path = ", *targetPath)
fac.DisposeFileAccess()