GNOME Bugzilla – Bug 558120
Downloaded files are read-only
Last modified: 2008-12-12 17:16:35 UTC
Please describe the problem: Downloaded files have read-only permissions set. This seems wrong. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
This is by design. When downloaded, podcast files are marked read-only. When an item's parent feed is deleted, its enclosure directory is also deleted if no RW files are present. If a deleted feed's enclosure directory contains both RO and RW files, the RO files are deleted while RW files are left untouched. So, if you modify a downloaded file, it will not be removed automatically when deleting the parent feed. I'm not sure if this has changed since release.
Well, it seems that not that way. I have tried to unsuscribe from a feed, so the podcasts downloaded should be deleted. Before I have checked that the files have read-only permissions (-r--r--r--). I have unsuscribed, the feed has been removed from the GUI and also all the items, but the downloaded file is still there. I have changed a little the code to show the Exception (I also attach this change), and when I do the same, I get that: EXCEPTION: System.UnauthorizedAccessException: Access to the path "/home/benja/XXXX/xxx.mp3" is denied. Curious, if I change the permissiones to the file so is RW, then I do the same and all works as expected. So, I don't find any reason to keep the RO permissions for downloaded podcast. I hope I have explained, my English is very bad.
Created attachment 124539 [details] [review] Test podcast deletion fail