MTrack/SCM/WorkingCopy.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 6 Sep 2011 09:58:18 +0000 (17:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 6 Sep 2011 09:58:18 +0000 (17:58 +0800)
MTrack/SCM/WorkingCopy.php

index 47e7182..a9f8a9e 100644 (file)
@@ -45,7 +45,10 @@ abstract class MTrack_SCM_WorkingCopy {
             require_once 'System.php';
             System::rm('-rf', $tn);
         }
-        
+        clearstatcache();
+        if (file_exists($tn)) {
+            die("OOPS");
+        }
         return $tn;
 
         $tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');