[longomatch] Make sure we don't error out if the directory is not here
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Make sure we don't error out if the directory is not here
- Date: Thu, 4 Dec 2014 13:04:12 +0000 (UTC)
commit 61cd8be679ee60f1546604b827d863e7d676ec96
Author: Julien Moutte <julien fluendo com>
Date: Wed Dec 3 17:49:45 2014 +0100
Make sure we don't error out if the directory is not here
LongoMatch.Addins/AddinsManager.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Addins/AddinsManager.cs b/LongoMatch.Addins/AddinsManager.cs
index 26127af..d9274b0 100644
--- a/LongoMatch.Addins/AddinsManager.cs
+++ b/LongoMatch.Addins/AddinsManager.cs
@@ -40,7 +40,9 @@ namespace LongoMatch.Addins
public static void Initialize (string configPath, string searchPath)
{
Log.Information ("Delete addins cache at " + configPath);
+ try {
Directory.Delete (configPath, true);
+ } catch (Exception ex) {}
searchPath = Path.GetFullPath (searchPath);
Log.Information ("Initializing addins at path: " + searchPath);
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]