Exemple #1
0
def sync(rootdir):
    '''
    Preform the syncing.

    rootdir
        The root directory to sync.
    '''
    auth.setup_auth_handler(rootdir)
    photosets = _get_photosets()
    downloaded = download(rootdir, photosets)
    uploaded = upload(rootdir, photosets)
    return downloaded, uploaded
Exemple #2
0
 def test_setup_auth_handler(self):
     """
     test_setup_auth_handler
     """
     self.assertTrue(auth.setup_auth_handler(self.root_dir))