[Qt-interest] Symbolic link real value?
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Tue Jul 28 14:15:58 CEST 2009
Knoll Oliver, ITS-CMT-SUI-SL-PDC-FIN-DEV wrote on Tuesday, July 28, 2009 2:06 PM:
> ... (the fun starts when you are also dealing with UNC style
> paths, such as \\server\foo\bar, and paths pointing to files instead
> of directories etc.)
Uhhm, sorry, I had my weak minute of today (and no coffee yet ;) when I wrote my previous post: you where specifically talking about symlinks, so you must be on a Unix environment - forget my Windows specific blah blah ;)
> I am not aware of such a functionality within Qt (if there is, please
> tell me :)
In fact, also forget the rest of my previous post, since you where already given the much nicer solution of using QDir::relativeFilePath()
(My solution is much more generic, in that it calculates the relative path between *any* objects (file or directory) - I think that was the reason why I ended up writing my own implementation. But now that I think of it I could have simplified my own solution by also using QDir::relativeFilePath() ;-)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list