Tcl Library Source Code

Bounty program for improvements to Tcl and certain Tcl packages.

[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]


tar - Tar file creation, extraction & manipulation

Table Of Contents


package require Tcl 8.4
package require tar ?0.11?

::tar::contents tarball ?-chan?
::tar::stat tarball ?file? ?-chan?
::tar::untar tarball args
::tar::get tarball fileName ?-chan?
::tar::create tarball files args
::tar::add tarball files args
::tar::remove tarball files


Note: Starting with version 0.8 the tar reader commands (contents, stats, get, untar) support the GNU LongName extension (header type 'L') for large paths.

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category tar of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide unified diffs, i.e the output of diff -u.

Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.


archive, tape archive, tar


File formats