Hi,
I'm doing a recursive function to load a list of files of a directory, how can I know if a item is a file or a directory?
Thanks
Hi,
I'm doing a recursive function to load a list of files of a directory, how can I know if a item is a file or a directory?
Thanks
Everything is a file.
QFileInfo::isDir() & Co.
Presumably you are using QDir::entryList()?Originally Posted by xgoan
Try using QDir::entryInfoList() instead and then QFileInfo::isDir(), QFileInfo::isFile()...
J-P Nurmi
Hehehe Thanks
Bookmarks