OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, name="") |
def | __repr__ (self) |
def | get_info (self) |
def | tobuf (self, format=DEFAULT_FORMAT, encoding=ENCODING, errors="surrogateescape") |
def | create_ustar_header (self, info, encoding, errors) |
def | create_gnu_header (self, info, encoding, errors) |
def | create_pax_header (self, info, encoding) |
def | create_pax_global_header (cls, pax_headers) |
def | frombuf (cls, buf, encoding, errors) |
def | fromtarfile (cls, tarfile) |
def | isreg (self) |
def | isfile (self) |
def | isdir (self) |
def | issym (self) |
def | islnk (self) |
def | ischr (self) |
def | isblk (self) |
def | isfifo (self) |
def | issparse (self) |
def | isdev (self) |
Data Fields | |
name | |
mode | |
uid | |
gid | |
size | |
mtime | |
chksum | |
type | |
linkname | |
uname | |
gname | |
devmajor | |
devminor | |
offset | |
offset_data | |
sparse | |
pax_headers | |
Properties | |
path = property(_getpath, _setpath) | |
linkpath = property(_getlinkpath, _setlinkpath) | |
Informational class which holds the details about an archive member given by a tar header block. TarInfo objects are returned by TarFile.getmember(), TarFile.getmembers() and TarFile.gettarinfo() and are usually created internally.
def __init__ | ( | self, | |
name = "" |
|||
) |
Construct a TarInfo object. name is the optional name of the member.
def __repr__ | ( | self | ) |
def create_gnu_header | ( | self, | |
info, | |||
encoding, | |||
errors | |||
) |
Return the object as a GNU header block sequence.
def create_pax_global_header | ( | cls, | |
pax_headers | |||
) |
Return the object as a pax global header block sequence.
def create_pax_header | ( | self, | |
info, | |||
encoding | |||
) |
Return the object as a ustar header block. If it cannot be represented this way, prepend a pax extended header sequence with supplement information.
def create_ustar_header | ( | self, | |
info, | |||
encoding, | |||
errors | |||
) |
Return the object as a ustar header block.
def frombuf | ( | cls, | |
buf, | |||
encoding, | |||
errors | |||
) |
Construct a TarInfo object from a 512 byte bytes object.
def fromtarfile | ( | cls, | |
tarfile | |||
) |
Return the next TarInfo object from TarFile object tarfile.
def get_info | ( | self | ) |
Return the TarInfo's attributes as a dictionary.
def isblk | ( | self | ) |
def ischr | ( | self | ) |
def isdev | ( | self | ) |
def isdir | ( | self | ) |
def isfifo | ( | self | ) |
def isfile | ( | self | ) |
def islnk | ( | self | ) |
def isreg | ( | self | ) |
def issparse | ( | self | ) |
def issym | ( | self | ) |
def tobuf | ( | self, | |
format = DEFAULT_FORMAT , |
|||
encoding = ENCODING , |
|||
errors = "surrogateescape" |
|||
) |
Return a tar header as a string of 512 byte blocks.
chksum |
devmajor |
devminor |
gid |
gname |
linkname |
mode |
mtime |
name |
offset |
offset_data |
pax_headers |
size |
sparse |
type |
uid |
uname |
|
static |
|
static |