[banshee] [gio] Fix error creating existing dir (bgo#608372)



commit eba7bfd3103a3c1595a1898f04619b1d285bb2e5
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Jan 28 13:17:08 2010 -0800

    [gio] Fix error creating existing dir (bgo#608372)

 .../Banshee.Gio/Banshee.IO.Gio/Directory.cs        |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Backends/Banshee.Gio/Banshee.IO.Gio/Directory.cs b/src/Backends/Banshee.Gio/Banshee.IO.Gio/Directory.cs
index ce37910..7c6a8fe 100644
--- a/src/Backends/Banshee.Gio/Banshee.IO.Gio/Directory.cs
+++ b/src/Backends/Banshee.Gio/Banshee.IO.Gio/Directory.cs
@@ -42,7 +42,9 @@ namespace Banshee.IO.Gio
         public void Create (string directory)
         {
             var file = GetDir (directory);
-            file.MakeDirectoryWithParents (null);
+            if (!file.Exists) {
+                file.MakeDirectoryWithParents (null);
+            }
         }
 
         public void Delete (string directory)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]