[Qt-interest] Symbolic link real value?

Thiago Macieira thiago.macieira at trolltech.com
Wed Jul 29 20:38:09 CEST 2009


Lukas Lipavsky wrote:
>Thanks, that's what I've been afraid of. I've workarounded it with call
>to 'ls -l', but this makes the code quite ugly (about 10 OS-specific
> lines instead of one working everywhere)...

If you're going to go platform-specific anyway, just use readlink(2).

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090729/ed2aed29/attachment.bin 


More information about the Qt-interest-old mailing list