Skip to content

Commit

Permalink
Fixed typo on Readme.adoc (#322)
Browse files Browse the repository at this point in the history
I found some typos while trying new ZIP APIs (thank you!).

Seems like `oz` should be `os`.
  • Loading branch information
windymelt authored Oct 12, 2024
1 parent b9a0a5b commit f1bf225
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ os.zip(
This will include only `.txt` files, excluding any `.log` files and anything inside
the `temp` folder.

==== `oz.zip.stream`
==== `os.zip.stream`

You can use `os.zip.stream` to write the final zip to an `OutputStream` rather than a
concrete `os.Path`. `os.zip.stream` returns a `geny.Writable`, which has a `writeBytesToStream`
Expand Down Expand Up @@ -1393,7 +1393,7 @@ os.unzip(
)
----

===== `oz.unzip.list`
===== `os.unzip.list`
You can list the contents of the zip file without extracting them:

[source,scala]
Expand All @@ -1403,7 +1403,7 @@ os.unzip.list(os.Path("/path/to/archive.zip"))

This will print all the file paths contained in the zip archive.

==== `oz.unzip.stream`
==== `os.unzip.stream`

You can unzip a zip file from any arbitrary `java.io.InputStream` containing its binary data
using the `os.unzip.stream` method:
Expand Down

0 comments on commit f1bf225

Please sign in to comment.