Skip to content

Commit

Permalink
0.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Jun 2, 2021
1 parent 8d9c01e commit 0148bc5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ Opens the tarball file located at path and reads its contents into tarball.conte
proc open(tarball: Tarball; path: string) {.raises: [IOError, ZippyError, ZippyError], tags: [ReadIOEffect].}
```

## **proc** open

Opens the tarball from a stream and reads its contents into tarball.contents (clears any existing tarball.contents entries).

```nim
proc open(tarball: Tarball; stream: Stream) {.raises: [IOError, ZippyError, OSError], tags: [ReadIOEffect].}
## **proc** writeTarball
Writes tarball.contents to a tarball file at path. Uses the path's file extension to determine the tarball format. Supports .tar, .tar.gz, .taz and .tgz file extensions.
Expand Down Expand Up @@ -357,10 +364,10 @@ proc open(archive: ZipArchive; path: string) {.raises: [IOError, ZippyError, Zip

## **proc** open

Opens the zip archive from a stream (in-memory) and reads its contents into archive.contents (clears any existing archive.contents entries).
Opens the zip archive from a stream and reads its contents into archive.contents (clears any existing archive.contents entries).

```nim
proc open(archive: ZipArchive; stream: StringStream) {.raises: [IOError, ZippyError, OSError], tags: [ReadIOEffect].}
proc open(archive: ZipArchive; stream: Stream) {.raises: [IOError, ZippyError, OSError], tags: [ReadIOEffect].}
```

## **proc** writeZipArchive
Expand Down
2 changes: 1 addition & 1 deletion zippy.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.5.9"
version = "0.5.10"
author = "Ryan Oldenburg"
description = "Pure Nim implementation of deflate, zlib, gzip and zip."
license = "MIT"
Expand Down

0 comments on commit 0148bc5

Please sign in to comment.