cleanup, docs

This commit is contained in:
root
2026-06-16 23:02:45 +00:00
parent ea08d5f28b
commit b8b56cf3dd
160 changed files with 1076 additions and 511 deletions
+7 -1
View File
@@ -21,4 +21,10 @@ UCE creates the destination directory and any needed child directories when they
For safety, every member name is normalized and checked before extraction. Absolute paths, drive-qualified paths, empty names, and `..` path segments are rejected so archives cannot write outside the destination directory.
:example
print("zip_extract example\n");
DValue entries;
entries["note.txt"] = "extracted content";
zip_create("/tmp/doc-zipext.zip", entries);
mkdir("/tmp/doc-zipext-out");
zip_extract("/tmp/doc-zipext.zip", "/tmp/doc-zipext-out");
print(file_get_contents("/tmp/doc-zipext-out/note.txt"), "\n");
dir_remove("/tmp/doc-zipext-out", true);