Spotted and commented (but NOT corrected :-( a bug in case the ResDir
exists and is empty
This commit is contained in:
parent
4f642f848e
commit
62dfe13c3a
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ bool testDirRes(std::string _dirName, bool _erase)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//else
|
//else
|
||||||
|
// WARNING: bug if dir exists and is empty; this says it is not!
|
||||||
|
// shoudl use scandir instead - no time now :-((( MS Aug. 01
|
||||||
s = "Dir " + _dirName + " is not empty";
|
s = "Dir " + _dirName + " is not empty";
|
||||||
throw runtime_error(s);
|
throw runtime_error(s);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Reference in a new issue