Why doesn't Vienna remove an Image when you delete a feed?

An RSS/Atom newsreader with features comparable to commercial newsreaders.
randian
Harmless
Posts: 12
Joined: Fri Oct 09, 2009 2:17 am

Why doesn't Vienna remove an Image when you delete a feed?

Postby randian » Tue Dec 15, 2009 9:58 am

The tiff file associated with a feed in ~/Library/Application Support/Vienna/Images doesn't get deleted when you delete a feed.

jeff_johnson_dev
Cocoaforge Admin
Posts: 1385
Joined: Wed Mar 01, 2006 9:12 pm

Re: Why doesn't Vienna remove an Image when you delete a feed?

Postby jeff_johnson_dev » Tue Dec 15, 2009 2:21 pm

This is because multiple feeds may share the same image. For example, if you have several feeds from CNN, they all use the same image.

randian
Harmless
Posts: 12
Joined: Fri Oct 09, 2009 2:17 am

Re: Why doesn't Vienna remove an Image when you delete a feed?

Postby randian » Tue Dec 15, 2009 3:04 pm

Couldn't you keep a reference count and delete an image when it reaches zero?

stevepa
Vienna Team
Posts: 469
Joined: Fri Jan 13, 2006 3:13 pm

Re: Why doesn't Vienna remove an Image when you delete a feed?

Postby stevepa » Tue Dec 29, 2009 2:49 pm

Ref counts are a potential source of bugs. Easier would be to tie this to any database maintenance task - scan the Images folder and locate any file that isn't referenced by any topic folder and delete them.

User avatar
Michael Ströck
Vienna Team
Posts: 303
Joined: Mon Mar 06, 2006 9:21 am
Location: Vienna, Austria
Contact:

Re: Why doesn't Vienna remove an Image when you delete a feed?

Postby Michael Ströck » Mon Jan 04, 2010 6:49 pm

Or maybe we just put the image into the database as a BLOB?


Return to “Vienna”

Who is online

Users browsing this forum: No registered users