Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Maintaining sync? #18

Open
ghost opened this issue Mar 18, 2014 · 1 comment
Open

Maintaining sync? #18

ghost opened this issue Mar 18, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 18, 2014

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
Copy link
Owner

richq commented Mar 18, 2014

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
#18.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant