{
if (strlen($this->dir) > 1) {
require_once 'System.php';
- echo "rmdir {$this->dir}";
-
- System::rm($this->dir, '-r');
+ //System::rm('-r', $this->dir);
}
}
function generateTempDir()
{
+
+ $tn = '/var/lib/php5/mtrackworkingdirlEwD96a';
+ if (file_exists($tn)) {
+ echo "TRASH";
+ require_once 'System.php';
+ var_dump(System::rm('-rf', $tn));
+ }
+ clearstatcache();
+ if (file_exists($tn)) {
+ die("OOPS");
+ }
+ return $tn;
+
$tn = tempnam(ini_get('session.save_path'),'mtrackworkingdir');
unlink($tn);
return $tn;