Skip to content

Design decisions

Sycadellicman edited this page Jan 11, 2011 · 5 revisions

FlickrFS Design Decisions

The following are some design decisions that I have made and the reasoning behind them.

Creating Photosets

In Flickr, a user must create a new photoset AND add a photo to the photoset before it can be saved. This means that a user cannot create an empty photoset. Mkdir tries to create an empty directory (or photoset in our case) which cannot happen.

Solutions:

  • Require the user to create photosets using the Flickr website.
    • Easy solution but inconvenient to the user. FlickrFS could still be used to manage photos but not photosets.
  • Create empty photosets in the file system and sync with Flickr only when photoset is not empty.
    • Complex coding. Need to add empty photoset logic to the caching system and add conditionals in rmdir (when deleting the last photo of a photoset) and mkdir (to create the empty photosets).

Clone this wiki locally