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

Thiago Macieira thiago at kde.org
Thu Feb 11 12:13:00 CET 2010


Em Quinta-feira 11 Fevereiro 2010, às 12:01:03, Mika Rajala escreveu:
> Hmm, makes me wonder. If here, QFileInfo::isFile, a file is a file and
> never a folder,
> 
> why would QFile::exists() tell that a folder is an existing file?

Because QFile::exists() doesn't check if the target is a file. It checks if it 
exists and that's all.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100211/26bc0dc9/attachment.bin 


More information about the Qt-interest-old mailing list