8 tar+gzip File Extraction

▼ |  | File: Racket File and Format Libraries

1 | Convertible: Data-Conversion Protocol
2 | gzip Compression and File Creation
3 | gzip Decompression
4 | zip File Creation
5 | zip File Extraction
6 | tar File Creation
7 | tar File Extraction
8 | tar+gzip File Extraction
9 | MD5 Message Digest
10 | SHA1 Message Digest
11 | GIF File Writing
12 | ICO File Reading and Writing
13 | Windows Registry
14 | Caching
15 | Globbing
| Bibliography
| Index

On this page:

untgz

top ← prev up next →

### 8`` tar+gzip File Extraction

(require file/untgz) | package: base

The file/untgz library provides a function to extract items from a possible gzipped TAR/USTAR archive.

> > procedure
> > (untgz |  | in |  |  |  |
> > | [ | #:dest dest-path |  |  |  |
> > |  | #:strip-count strip-count |  |  |  |
> > |  | #:permissive? permissive? |  |  |  |
> > |  | #:filter filter-proc]) |  | → |  | void?
> in : (or/c path-string? input-port?)
> dest-path : (or/c path-string? #f) = #f
> strip-count : exact-nonnegative-integer? = 0
> permissive? : any/c = #f
> | filter-proc |  | : |  |
> (path? (or/c path? #f)
> symbol? exact-integer? (or/c path? #f)
> exact-nonnegative-integer?
> exact-nonnegative-integer?
> . -> . any/c)
> |  |  | = |  | (lambda args #t)

The same as untar, but if in is in gzip form, it is gunzipped as it is unpacked.

Changed in version 6.3 of package base: Added the #:permissive? argument.

top ← prev up next →