get_link is used to get the trails of given symbolic links (other files are also valid) until reaching their targets.