[mapguide-commits] r6854 - trunk/MgDev/Common/Foundation/System
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Jul 5 08:42:09 PDT 2012
Author: jng
Date: 2012-07-05 08:42:09 -0700 (Thu, 05 Jul 2012)
New Revision: 6854
Modified:
trunk/MgDev/Common/Foundation/System/FileUtil.cpp
Log:
#1884: Extend the same leniency to MgFileUtil::DeleteDirectory() if strict = false
Modified: trunk/MgDev/Common/Foundation/System/FileUtil.cpp
===================================================================
--- trunk/MgDev/Common/Foundation/System/FileUtil.cpp 2012-07-05 15:27:56 UTC (rev 6853)
+++ trunk/MgDev/Common/Foundation/System/FileUtil.cpp 2012-07-05 15:42:09 UTC (rev 6854)
@@ -490,7 +490,7 @@
int errCode = _rmdir(MgUtil::WideCharToMultiByte(path).c_str());
- if (0 != errCode)
+ if (0 != errCode && strict)
{
errCode = errno; // This is not thread safe - requires guard
MgStringCollection arguments;
More information about the mapguide-commits
mailing list