Hi, all,

I have upgraded the pythonista to 3.1 and a problem came up when I used dropboxsync to sync all the files with my Dropbox. It is

[400] the file /Examples/.DS_store is on the ignored file list, so it is not saved ...

The sync was not successfully finished.

The problem seems from the upgraded pythonista, which includes a file .DS_store in /Examples. This is uploaded by git but not not accepted by the Dropbox. The dropboxsync script tries to upload it and surely fails.

My patch is straightforward:
1. define a new function:

def ignoredFile(file):
    filename = file.split('/')[-1]
    return filename.starts('.')
  1. change Line 187 from
state.check_state(client, file)

to

if not ignoreFile(file):
    state.check_state(client, file)

and change Line 192 from

if file not in filelist:

to

if file not in filelist and not ignoredFile(file):

Thanks for reading. Hope it helps someone.