Trees | Indices | Help |
|
---|
|
Read from and write to tar format archives.
Version: $Revision: 51436 $
Date: $Date: 2006-08-22 04:43:51 +1000 (Tue, 22 Aug 2006) $
Author: Lars Gust\xe4bel (lars@gustaebel.de)
|
|||
TarError Base exception. |
|||
ExtractError General exception for extract errors. |
|||
ReadError Exception for unreadble tar archives. |
|||
CompressionError Exception for unavailable compression methods. |
|||
StreamError Exception for unsupported operations on stream-like TarFiles. |
|||
_LowLevelFile Low-level file object. |
|||
_Stream Class that serves as an adapter between TarFile and a stream-like object. |
|||
_StreamProxy Small proxy class that enables transparent compression detection for the Stream interface (mode 'r|*'). |
|||
_BZ2Proxy Small proxy class that enables external file object support for "r:bz2" and "w:bz2" modes. |
|||
ExFileObject File-like object for reading an archive member. |
|||
TarInfo Informational class which holds the details about an archive member given by a tar header block. |
|||
TarFile The TarFile Class provides an interface to tar archives. |
|||
TarIter Iterator Class. |
|||
_section Base class for _data and _hole. |
|||
_data Represent a data section in a sparse file. |
|||
_hole Represent a hole section in a sparse file. |
|||
_ringbuffer Ringbuffer class which increases performance over a regular list. |
|||
TarFileCompat TarFile class compatible with standard module zipfile's ZipFile class. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
version =
|
|||
__cvsid__ =
|
|||
__credits__ =
|
|||
NUL =
|
|||
BLOCKSIZE = 512
|
|||
RECORDSIZE = 10240
|
|||
MAGIC =
|
|||
VERSION =
|
|||
LENGTH_NAME = 100
|
|||
LENGTH_LINK = 100
|
|||
LENGTH_PREFIX = 155
|
|||
MAXSIZE_MEMBER = 8589934591
|
|||
REGTYPE =
|
|||
AREGTYPE =
|
|||
LNKTYPE =
|
|||
SYMTYPE =
|
|||
CHRTYPE =
|
|||
BLKTYPE =
|
|||
DIRTYPE =
|
|||
FIFOTYPE =
|
|||
CONTTYPE =
|
|||
GNUTYPE_LONGNAME =
|
|||
GNUTYPE_LONGLINK =
|
|||
GNUTYPE_SPARSE =
|
|||
SUPPORTED_TYPES =
|
|||
REGULAR_TYPES =
|
|||
S_IFLNK = 40960
|
|||
S_IFREG = 32768
|
|||
S_IFBLK = 24576
|
|||
S_IFDIR = 16384
|
|||
S_IFCHR = 8192
|
|||
S_IFIFO = 4096
|
|||
TSUID = 2048
|
|||
TSGID = 1024
|
|||
TSVTX = 512
|
|||
TUREAD = 256
|
|||
TUWRITE = 128
|
|||
TUEXEC = 64
|
|||
TGREAD = 32
|
|||
TGWRITE = 16
|
|||
TGEXEC = 8
|
|||
TOREAD = 4
|
|||
TOWRITE = 2
|
|||
TOEXEC = 1
|
|||
filemode_table =
|
|||
TAR_PLAIN = 0
|
|||
TAR_GZIPPED = 8
|
Imports: sys, os, shutil, stat, errno, time, struct, copy, pwd, grp, normpath, open
|
Calculate the checksum for a member's header by summing up all characters except for the chksum field which is treated as if it was filled with spaces. According to the GNU tar sources, some tars (Sun and NeXT) calculate chksum with signed char, which will be different if there are chars in the buffer with the high bit set. So we calculate two checksums, unsigned and signed. |
Copy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. |
Convert a file's mode to a string of the form -rwxrwxrwx. Used by TarFile.list() |
|
__cvsid__
|
__credits__
|
SUPPORTED_TYPES
|
filemode_table
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Tue Jan 29 22:41:23 2008 | http://epydoc.sourceforge.net |