Publishing fixes

This commit is contained in:
Giulio 2018-05-22 16:12:59 +02:00
parent df781c1058
commit 3b3cc94203

View File

@ -89,9 +89,15 @@ def build(repo):
def publish(repo, davoptions):
client = wc.Client(davoptions)
files = [f for f in os.listdir('.') if os.path.isfile(f)]
files = os.listdir('repo/')
for file in files:
client.upload_sync(remote_path="/" + file, local_path=file)
if os.path.isfile(file):
client.upload_sync(remote_path="/repo/" + file, local_path="repo/" +file)
for size in ['/', '-120/', '-160/', '-240/', '-320/', '-480/', '-640/']:
files = os.listdir('repo/icons' + size)
for file in files:
client.upload_sync(remote_path="/repo/icons" + size + file, local_path="repo/icons" + size + file)
def main():
check_env(repo)