[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16199]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [16199] |
Date: |
Thu, 26 Jan 2017 10:29:35 -0500 (EST) |
Revision: 16199
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16199
Author: nelson224
Date: 2017-01-26 10:29:35 -0500 (Thu, 26 Jan 2017)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/inc/import/class.import_component_files.inc.php
Modified:
branches/dev-syncromind-2/property/inc/import/class.import_component_files.inc.php
===================================================================
---
branches/dev-syncromind-2/property/inc/import/class.import_component_files.inc.php
2017-01-26 13:47:44 UTC (rev 16198)
+++
branches/dev-syncromind-2/property/inc/import/class.import_component_files.inc.php
2017-01-26 15:29:35 UTC (rev 16199)
@@ -212,6 +212,8 @@
$message['message'][] = array('msg' => lang('%1
relations existing', $count_relations_existing));
}
+ $this->_delete_all_dir_temp();
+
return $message;
}
@@ -500,6 +502,20 @@
return $component_files;
}
+ private function _delete_all_dir_temp()
+ {
+ $files = glob($this->path_upload_dir . '*', GLOB_MARK);
+
+ foreach ($files as $file)
+ {
+ $path = realpath($file);
+ if (is_dir($path))
+ {
+ exec("rm -Rf '{$path}'", $ret);
+ }
+ }
+ }
+
private function
_search_relations_with_components_location($relations)
{
$count_new_relations = 0;
@@ -772,6 +788,8 @@
}
}
+ $this->_delete_all_dir_temp();
+
return $message;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16199],
nelson . guerra <=