/**
  * Рекурсивное удаление папки
  *
  * @static
  * @param $sDir
  * @return bool
  */
 static function RemoveDir($sDir)
 {
     if (!is_dir($sDir)) {
         return true;
     }
     $sPath = rtrim($sDir, '/') . '/';
     if ($aFiles = glob($sPath . '*', GLOB_MARK)) {
         foreach ($aFiles as $sFile) {
             if (is_dir($sFile)) {
                 ACE::RemoveDir($sFile);
             } else {
                 @unlink($sFile);
             }
         }
     }
     if (is_dir($sPath)) {
         @rmdir($sPath);
     }
 }