[rygel] core: Create media-art cache directory
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Create media-art cache directory
- Date: Tue, 10 Aug 2010 13:59:15 +0000 (UTC)
commit 883011098215afdaeeb724341d71e6ca13f7b313
Author: Jens Georg <mail jensge org>
Date: Tue Aug 10 12:29:11 2010 +0300
core: Create media-art cache directory
Don't fail if directory doesn't exist, just create it
src/rygel/rygel-media-art-store.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-media-art-store.vala b/src/rygel/rygel-media-art-store.vala
index 18f2365..2471503 100644
--- a/src/rygel/rygel-media-art-store.vala
+++ b/src/rygel/rygel-media-art-store.vala
@@ -122,9 +122,7 @@ public class Rygel.MediaArtStore : GLib.Object {
var file = File.new_for_path (dir);
if (!file.query_exists (null)) {
- var message = "Failed to find media-art directory";
-
- throw new MediaArtStoreError.NO_DIR (message);
+ DirUtils.create_with_parents (dir, 0750);
}
this.directory = dir;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]