Is there any way to get all symlinks for specific file?
So let say, I have a file here: home/test/a.png
and I have created 2 symlinks for this file:
home/test-a.png
home/testb/a.png
In this circumstances, is there any function to get those 2 symlinks back?
Something like
get_all_symlinks('home/test/a.png')
which will pass following:
array(
'home/test-a.png',
'home/testb/a.png'
)
Or at least, is there any function or way to get to know if this file has symlink(s) to it?