-
Notifications
You must be signed in to change notification settings - Fork 7
Design decisions
Sycadellicman edited this page Jan 11, 2011
·
5 revisions
The following are some design decisions that I have made concerning FlickrFS and the reasoning behind them.
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).