From c81328a6b0d497c42fea5c02fdb68083cfbadf59 Mon Sep 17 00:00:00 2001 From: Garrett Summerfield Date: Mon, 10 Apr 2023 00:05:33 -0500 Subject: [PATCH] Remove skipping of ZIP files for file upload Due to how some servers back up the world, the ZIP file has the most intact worlds. The ZIPs should be uploaded alongside the server as well as if there are any other files archived into ZIP files. --- sync.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/sync.py b/sync.py index f7fecf3..dfd12f9 100644 --- a/sync.py +++ b/sync.py @@ -55,9 +55,6 @@ def upload_files(): for file in files: file_path = os.path.join(root, file) rel_file_path = os.path.relpath(file_path, "./files/default") - if file.endswith(".zip"): - print("Skipping file: " + rel_file_path) - continue print("Uploading file: " + rel_file_path) file_upload_url = api.client.servers.files.get_upload_file_url( server)