MTrack/SCM/WorkingCopy.php
[web.mtrack] / MTrack / SCM / WorkingCopy.php
index 0d2165a..171bfad 100644 (file)
@@ -39,10 +39,15 @@ abstract class MTrack_SCM_WorkingCopy {
     function generateTempDir()
     {
         
-        $tn =  '/var/lib/php5/mtrackworkingdirlEwD96';
+        $tn =  '/var/lib/php5/mtrackworkingdirlEwD96a';
         if (file_exists($tn)) {
+            echo "TRASH";
             require_once 'System.php';
-            System::rm('-r', $tn);
+            var_dump(System::rm('-rf', $tn));
+        }
+        clearstatcache();
+        if (file_exists($tn)) {
+            die("OOPS");
         }
         return $tn;