Regression due to the safe compile: fixed an issue depending on the OS: could not compile (bug with PHP rename)

SVN:trunk[2843]
This commit is contained in:
Romain Quetiez
2013-09-02 08:52:14 +00:00
parent f93b1e1c1c
commit afa6399dce

View File

@@ -645,6 +645,15 @@ class SetupUtils
self::tidydir($sDest);
}
self::copydir($sSource, $sDest);
self::tidydir($sSource);
rmdir($sSource);
/**
* We have tried the following implementation (based on a rename/mv)
* But this does not work on some OSes.
* More info: https://bugs.php.net/bug.php?id=54097
*
$aFiles = scandir($sSource);
if(sizeof($aFiles) > 0)
{
@@ -659,6 +668,7 @@ class SetupUtils
}
}
rmdir($sSource);
*/
}
static function GetPreviousInstance($sDir)