Repository URL to install this package:
|
Version:
5.0-r2 ▾
|
enigma2-plugin-systemplugins-gutemine
/
usr
/
lib
/
enigma2
/
python
/
Plugins
/
SystemPlugins
/
gutemine
/
unix_ar.pyo
|
|---|
ó
]H¡dc @ s{ d d l Z d d l Z d d l Z d Z e Z d Z d Z d e f d YZ d e f d YZ
d d
Z d S( iÿÿÿÿNs 0.2.1i c C s$ t | t r | S| j d Sd S( s¬
Keeps bytes, converts unicode into UTF-8.
This is used for filenames, which the user may supply as unicode, but is
always stored as bytes in the archive.
s utf-8N( t
isinstancet bytest encode( t s( ( sA /usr/lib/enigma2/python/Plugins/SystemPlugins/gutemine/unix_ar.pyt utf8 s t ArInfoc B st e Z d Z d d d d d d Z e d Z e j d Z e d Z d Z
d d Z d Z RS( s
Information on a file in an archive.
This has the filename and all the metadata for a file in an archive.
It is returned by :meth:`~unix_ar.ArFile.infolist()` and
:meth:`~unix_ar.ArFile.getinfo()`, and can be passed when adding or
extracting a file to or from the archive.
Missing fields will be autocompleted when passed to `ArFile`, but note that
things like `size` will be respected, allowing you to store or extract only
part of a file.
`ArInfo` objects returned by `ArFile` have the offset to the file in the
archive, allowing to extract the correct one even if multiple files with
the same name are present; if you change the `name` attribute, the initial
file will be extracted with the new name (and new metadata).
c C sC | | _ | | _ | | _ | | _ | | _ | | _ d | _ d S( N( t namet sizet mtimet permst uidt gidt Nonet offset( t selfR R R R R
R ( ( sA /usr/lib/enigma2/python/Plugins/SystemPlugins/gutemine/unix_ar.pyt __init__- s c C s | j S( N( t _name( R ( ( sA /usr/lib/enigma2/python/Plugins/SystemPlugins/gutemine/unix_ar.pyR 6 s c C s t | | _ d S( N( R R ( R t value( ( sA /usr/lib/enigma2/python/Plugins/SystemPlugins/gutemine/unix_ar.pyR : s c C s» t j d | \ } } } } } } } t | j d } t | d } t | d } t | d } t | d } t | d } | d k r¢ t d n | | | | | | | S( s,
Decode the archive header.
t 16s12s6s6s8s10s2st i
i s `
s Invalid file signature( t structt unpackR t rstript intt
ValueError( t clst bufferR R R
R R R t magic( ( sA /usr/lib/enigma2/python/Plugins/SystemPlugins/gutemine/unix_ar.pyt
frombuffer>