cleanup, docs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user