[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: 'lightweight' QDir::isAbsolutePath replacement ?
From:       "Jos van den Oever" <jvdoever () gmail ! com>
Date:       2008-03-06 14:17:39
Message-ID: c2dbc4260803060617o3e276befi6634288211976c9c () mail ! gmail ! com
[Download RAW message or body]

2008/3/6, Ralf Habacker <ralf.habacker@freenet.de>:
>     return (path.startsWith(QLatin1Char('/')) || (path.[0].isLetter() &&
>  path[1] == QLatin1Char(':')) ) ;

This does not work for a path to a network drive on windows which has the form:
 \\server\share\dir\subdir\file

See:
http://en.wikipedia.org/wiki/Path_(computing)#Uniform_Naming_Convention

Also '\' on Windows means, 'root of active drive'. So 'dir \' gives
you the same as 'dir d:' if you are in a directory on disk d:.

Cheers,
Jos
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic