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

Sean Harmer sean.harmer at maps-technology.com
Thu Feb 11 11:25:32 CET 2010


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



More information about the Qt-interest-old mailing list