MTrack/SCM/WorkingCopy.php
[web.mtrack] / MTrack / SCM / WorkingCopy.php
index 7d1d4e4..a9f8a9e 100644 (file)
@@ -41,10 +41,14 @@ abstract class MTrack_SCM_WorkingCopy {
         
         $tn =  '/var/lib/php5/mtrackworkingdirlEwD96';
         if (file_exists($tn)) {
+            echo "TRASH";
             require_once 'System.php';
-            System::rm('-r', $tn);
+            System::rm('-rf', $tn);
+        }
+        clearstatcache();
+        if (file_exists($tn)) {
+            die("OOPS");
         }
-        
         return $tn;
 
         $tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');