[mapguide-commits] r6852 - branches/2.4/MgDev/Common/Foundation/System
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Jul 5 06:16:55 PDT 2012
Author: jng
Date: 2012-07-05 06:16:54 -0700 (Thu, 05 Jul 2012)
New Revision: 6852
Modified:
branches/2.4/MgDev/Common/Foundation/System/FileUtil.cpp
Log:
#1884: Extend the same leniency to MgFileUtil::DeleteDirectory() if strict = false
Modified: branches/2.4/MgDev/Common/Foundation/System/FileUtil.cpp
===================================================================
--- branches/2.4/MgDev/Common/Foundation/System/FileUtil.cpp 2012-07-05 10:09:11 UTC (rev 6851)
+++ branches/2.4/MgDev/Common/Foundation/System/FileUtil.cpp 2012-07-05 13:16:54 UTC (rev 6852)
@@ -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