Skip to content
This repository was archived by the owner on Jul 20, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions upload/bundles2dropbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,23 @@ def upload_files(basedir, client):

"""
files = []


folder_metadata = client.metadata('/')
metadata_set = {content['path'].split('/')[-1] for content in metadata['contents'] if content['is_dir'] == False}

for name in os.listdir(basedir):
path = os.path.abspath(os.path.join(basedir, name))
if os.path.isfile(path) and valid_format(name, 'linux'):
if os.path.isfile(path) and valid_format(name, 'linux') and (name not in metadata_set):
files.append(name)

for name in os.listdir(basedir):
path = os.path.abspath(os.path.join(basedir, name))
if os.path.isfile(path) and valid_format(name, 'windows'):
if os.path.isfile(path) and valid_format(name, 'windows') and (name not in metadata_set):
files.append(name)

for name in os.listdir(basedir):
path = os.path.abspath(os.path.join(basedir, name))
if os.path.isfile(path) and valid_format(name, 'osx'):
if os.path.isfile(path) and valid_format(name, 'osx') and (name not in metadata_set):
files.append(name)

for file in files:
Expand Down