soxs060389
26th January 2010, 10:36
It sounds real easy, and as the Doc states it should work like this, but all I get is "unable to spawn"
void blah(const QString &basedir){
QDir dir(_basedir);
if (!dir.exists()){
qDebug() << "Dir " << _basedir << " does NOT exists";
if (dir.mkpath(_basedir)){
qDebug() << "Spawned base dir " << _basedir;
}
else{
qDebug() << "Unable to spawn base dir " << _basedir;
return;
}
}
}
Note: _basedir may be absolute or relative
may somone please point me to my mistake, I don't really see any.
I allready read the doc twice, but I don't see any hint about this..
thanks for any reply
void blah(const QString &basedir){
QDir dir(_basedir);
if (!dir.exists()){
qDebug() << "Dir " << _basedir << " does NOT exists";
if (dir.mkpath(_basedir)){
qDebug() << "Spawned base dir " << _basedir;
}
else{
qDebug() << "Unable to spawn base dir " << _basedir;
return;
}
}
}
Note: _basedir may be absolute or relative
may somone please point me to my mistake, I don't really see any.
I allready read the doc twice, but I don't see any hint about this..
thanks for any reply