[banshee] [gio] Fix error creating existing dir (bgo#608372)
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [gio] Fix error creating existing dir (bgo#608372)
- Date: Thu, 28 Jan 2010 21:21:09 +0000 (UTC)
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]