[Qt-interest] QFile::exists on a folder

Mika Rajala mika_rajala_2 at hotmail.com
Thu Feb 11 11:39:25 CET 2010


I remember reading that it's not like this on every file/operating system. Especially ancient or special ones.

 

But I see your point.

 

Maybe it's intentional, but why it's not mentioned in the documentation of QFile::Exists?

QDir::exists has a lot better documentation.

 

-mika

 
> From: sean.harmer at maps-technology.com
> To: qt-interest at trolltech.com
> Date: Thu, 11 Feb 2010 10:25:32 +0000
> Subject: Re: [Qt-interest] QFile::exists on a folder
> 
> Hi,
> 
> On Thursday 11 February 2010 10:14:19 Mika Rajala wrote:
> > Ok, that's nice.
> > 
> > 
> > 
> > Much less kludgy than my current solution.
> > 
> > 
> > 
> > But I still wonder why QFile::exists would return true on a directory and
> > if it's intentional or a bug?
> 
> Because a directory is a file. It is just a special kind of file. So I think 
> this is intentional.
> 
> Sean
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
 		 	   		  
_________________________________________________________________
Tutustu videoiden avulla Windows Live tuotteisiin.
http://www.microsoft.fi/live
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100211/7e50411e/attachment.html 


More information about the Qt-interest-old mailing list