PDA

View Full Version : Recognizing file or directory



AD
7th July 2008, 15:43
Hello!
I've string which consider path of file or path of directory
How can I recognize what is this, path or directory?

DeepDiver
7th July 2008, 15:47
Have a look at QFileInfo.
You'll find methods like:
bool isDir () const
bool isFile () const

Regards,

Tom

AD
7th July 2008, 15:49
Have a look at QFileInfo.
You'll find methods like:
bool isDir () const
bool isFile () const

Regards,

Tom

Thanks, Tom :)

DeepDiver
7th July 2008, 16:18
no problem!

send me a "Thanks" is enough! ;-)