Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Remove skipping of ZIP files for file upload
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
garrettsummerfi3ld committed Apr 10, 2023
1 parent 2298001 commit c81328a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c81328a

Please sign in to comment.