Easy Zip 1.0 Tools 4.3 Community
Submitted by user chairfull; MIT; 2024-08-21
Easily zip a bunch of files for save games or level editors!
Support images, nodes, resources, and built in types like dictionaries.
**API**
```gd
# Write files by passing as a zip, with names as file paths.
Zip.write("user://slot0.save", {"state.var": {"score": 10, "name": "player"}, "scene.scn": get_tree().current_scene(), "screen.jpg": screenshot })
# Append works the same but without erasing data.
Zip.append()
# Automatically snaps, shrinks, and appends to the file.
Zip.write_screenshot("user://slot.zip", get_viewport())
# Automatically converts bytes to the appropriate format.
# .tscn and .scn will come back as a PackedScene.
Zip.read("user://slot.zip", "screen.jpg")
# Get a list paths that match the head and tail.
Zip.get_files("user://slot0.save", "", ".png")
# Remove a list of files.
Zip.remove("user://custom_map.map", ["area1.scn", "area2.scn"])
```
**Check the README for more details.**
View files Download Submit an issue Recent Edits