[banshee] Set the file attributes to normal before deleting podcast file



commit 9cb6a8dabedeed07092db388f9972c57f9171450
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sun Apr 26 11:47:20 2009 +0200

    Set the file attributes to normal before deleting podcast file
    
    Podcast files are set to read-only, so we need to reset their attribute
    to normal before deleting them (BGO #558121).
---
 .../Migo/Migo.Syndication/FeedEnclosure.cs         |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs b/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs
index 3f75347..ca99a32 100644
--- a/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs
+++ b/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs
@@ -138,6 +138,7 @@ namespace Migo.Syndication
             lock (sync) {
                 if (!String.IsNullOrEmpty (local_path) && File.Exists (local_path)) {
                     try {
+                        File.SetAttributes (local_path, FileAttributes.Normal);
                         File.Delete (local_path);
                         Directory.Delete (Path.GetDirectoryName (local_path));
                     } catch {}



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