in reply to Named Pipe, Linking to It and Knowing the Name of the Link

adcoment:

That would be dependent on the OS and/or filesystem. I'm not aware of any OS/filesystem that will let you easily look up the names of all the symlinks to a file. On a *NIX box, I generally use the find command. You could scan the filesystem and look for all symlinks and check to see if they refer to the file you're interested in. But I can't think of a solution that would be fast.

It's very much like trying to find the key for a value in a hash--the hash doesn't support lookups based on the value, so you have to scan through the hash to find the entry.

...roboticus

  • Comment on Re: Named Pipe, Linking to It and Knowing the Name of the Link