From time to time I wish we had that one.
Anyone else?
/** Checks whether the file exists and is a directory.
@returns true only if this is a real directory, false if it's not a directory
or doesn't exist
@see exists, isDirectory, existsAsFile
*/
bool File::existsAsDirectory() const
{
return exists() && isDirectory();
}
edit: ah, and everytime I forgot that isDirectory already check for existence
sorry, just ignore that