[filesystem] support for reading symlinks?
Hi all, I was wondering whether there was any support for reading the contents of a symlink in the filesystem library, i.e. the path to the file it points to. I saw that back in 2006 somebody submitted a patch that would (among other things) do this. However the patch seems never to have made it into the main trunk. Of course that is fairly easy to implement that myself, but if there is a standard implementation I'd rather use that. Thanks in advance, Nils
2009/7/17 Nils Krumnack
I was wondering whether there was any support for reading the contents of a symlink in the filesystem library, i.e. the path to the file it points to. I saw that back in 2006 somebody submitted a patch that would (among other things) do this. However the patch seems never to have made it into the main trunk.
Of course that is fairly easy to implement that myself, but if there is a standard implementation I'd rather use that.
I don't believe there's a standard implementation. Last I heard, though, Beman was working on a revised implementation that will hopefully have the needed functionality. I think one of the deprecated functions (canonize, perhaps) does a full symlink elimination, so you might be able to use that.
participants (2)
-
Nils Krumnack
-
Scott McMurray