From 62dfe13c3ad1e3392f24f6226e741d575081b577 Mon Sep 17 00:00:00 2001 From: evomarc Date: Tue, 4 Sep 2001 06:41:34 +0000 Subject: [PATCH] Spotted and commented (but NOT corrected :-( a bug in case the ResDir exists and is empty --- eo/src/utils/make_help.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eo/src/utils/make_help.cpp b/eo/src/utils/make_help.cpp index 493025d6..32e4a735 100644 --- a/eo/src/utils/make_help.cpp +++ b/eo/src/utils/make_help.cpp @@ -94,6 +94,8 @@ bool testDirRes(std::string _dirName, bool _erase) return true; } //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"; throw runtime_error(s); return true;