Changeset 6101 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/PluginCache.cs
- Timestamp:
- 05/02/11 19:07:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/PluginCache.cs
r6008 r6101 231 231 232 232 /// <summary> 233 /// Checks the PluginTemp directory for orphaned directories and deletes them. 234 /// This should be only called if no jobs are currently running. 235 /// </summary> 236 public void CleanPluginTemp() { 237 if (Directory.Exists(PluginTempBaseDir)) { 238 foreach (string dir in Directory.EnumerateDirectories(PluginTempBaseDir)) { 239 try { 240 SlaveClientCom.Instance.ClientCom.LogMessage("Deleting orphaned directory " + dir); 241 Directory.Delete(dir, true); 242 } 243 catch (Exception ex) { 244 SlaveClientCom.Instance.ClientCom.LogMessage("Error cleaning up PluginTemp directory " + dir + ": " + ex.ToString()); 245 } 246 } 247 } 248 } 249 250 /// <summary> 233 251 /// checks the pluginCacheDirectory and deletes plugin folders which are not used anymore 234 /// </summary> 235 /// <param name="path"></param> 252 /// </summary> 236 253 private void CleanPluginCache() { 237 254 FileStream fs = null;
Note: See TracChangeset
for help on using the changeset viewer.