We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 902fdec commit d5c2f6aCopy full SHA for d5c2f6a
1 file changed
manager/manager/manager.py
@@ -296,6 +296,10 @@ def prepare_custom_universe(self, cfg_dict):
296
_, _, zip_file = cfg_dict["zip"].partition("base64,")
297
298
universe_ref = "/workspace/worlds/src/" + cfg_dict["name"]
299
+ # Remove old content
300
+ if os.path.exists("/workspace/worlds"):
301
+ shutil.rmtree("/workspace/worlds", ignore_errors=False)
302
+
303
# Create the folder if it doesn't exist
304
universe_folder = universe_ref + "/"
305
if not os.path.exists(universe_folder):
0 commit comments