richq / folders2flickr

Upload files to flickr
Other
102 stars 38 forks source link

Maintaining sync? #18

Open ghost opened 10 years ago

ghost commented 10 years ago

How does folders2flickr maintain a sync? I have used another script to do my current sync and I want to avoid re-syncing? Is it a filename as a tag?

richq commented 10 years ago

It's a python "shelve" file, which is a serialized dictionary. The keys are the flickr photo ids to file names, and the file names to flickr keys.

e.g.

python

import shelve historyFile = shelve.open('history', 'r') historyFile.keys()[0] '/04-November-2012/IMG_2741.JPG' historyFile.keys()[1] '/10-March-2012/IMG_2363.JPG' historyFile.keys()[1000] '11909290274' historyFile['11909290274'] '/julio 2010/IMG_0959.JPG'

The paths are relative to the directory you specify to sync, and seem to have a leading slash.

Writing a migration script ought to be easy, but the hard bit is knowing the flickr ID for each local photo.

On 03/18/2014 05:52 PM, latitudehopper wrote:

How does folders2flickr maintain a sync? I have used another script to do my current sync and I want to avoid re-syncing? Is it a filename as a tag?

— Reply to this email directly or view it on GitHub https://github.com/richq/folders2flickr/issues/18.