Skip to content

Commit

Permalink
0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Dec 21, 2020
1 parent de0cf40 commit e7b604f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ Extracts the files stored in tarball to the destination directory. The path to t
proc extractAll(tarball: Tarball; dest: string) {.raises: [ZippyError, OSError, IOError], tags: [ReadDirEffect, ReadEnvEffect, ReadIOEffect, WriteDirEffect, WriteIOEffect].}
```

## **proc** extractTarball
## **proc** extractAll

Extracts the files in the tarball located at tarPath into the destination directory. Supports .tar, .tar.gz, .taz and .tgz file extensions.

```nim
proc extractTarball(tarPath, dest: string) {.raises: [IOError, ZippyError, OSError], tags: [ReadIOEffect, ReadDirEffect, ReadEnvEffect, WriteDirEffect, WriteIOEffect].}
proc extractAll(tarPath, dest: string) {.raises: [IOError, ZippyError, OSError], tags: [ReadIOEffect, ReadDirEffect, ReadEnvEffect, WriteDirEffect, WriteIOEffect].}
```

## **proc** createTarball
Expand Down
2 changes: 1 addition & 1 deletion examples/tarball_extract.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import os, zippy/tarballs
# Extracts all of the files and directories in the tarball into output/dir.

createDir("output") # Ensure the path to the output dir exists
extractTarball("tests/data/tarballs/Nim-1.4.2.tar.gz", "output/dir")
extractAll("tests/data/tarballs/Nim-1.4.2.tar.gz", "output/dir")
2 changes: 1 addition & 1 deletion src/zippy/tarballs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ proc extractAll*(tarball: Tarball, dest: string) =

moveDir(tmpDir, dest)

proc extractTarball*(tarPath, dest: string) =
proc extractAll*(tarPath, dest: string) =
## Extracts the files in the tarball located at tarPath into the destination
## directory. Supports .tar, .tar.gz, .taz and .tgz file extensions.
let tarball = Tarball()
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.4.0"
version = "0.4.1"
author = "Ryan Oldenburg"
description = "Pure Nim implementation of deflate, zlib, gzip and zip."
license = "MIT"
Expand Down

0 comments on commit e7b604f

Please sign in to comment.