Package libxyz :: Package vfs :: Module tar :: Class TarVFSObject
[hide private]
[frames] | no frames]

Class TarVFSObject

source code

      object --+    
               |    
vfsobj.VFSObject --+
                   |
                  TarVFSObject

Tar archive interface

Instance Methods [hide private]
 
either(self, a, b) source code
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
walk(self)
Directory tree walker
source code
 
_prepare(self) source code
 
__str__(self)
str(x)
source code
 
in_dir(self, d, e)
Filter only those archive entries which exist in the same directory level
source code
 
_find_type(self)
Find out file type
source code
 
_set_attributes(self)
Set file attibutes
source code
 
_init_obj(self) source code
 
_open_archive(self) source code

Inherited from vfsobj.VFSObject: __repr__, __unicode__, copy, is_block, is_char, is_dir, is_dir_empty, is_fifo, is_file, is_link, is_socket, mkdir, move, remove

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  get_name = lambda self, x:
  get_path = lambda self, x:
  file_type_map = {lambda obj: obj.isfile(): vfstypes.VFSTypeFil...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

walk(self)

source code 

Directory tree walker

Returns:
tuple (parent, dir, dirs, files) where: parent - parent dir *VFSObject instance dir - current dir TarVFSObject instance dirs - list of TarVFSObject objects of directories files - list of TarVFSObject objects of files
Overrides: vfsobj.VFSObject.walk

_prepare(self)

source code 
Overrides: vfsobj.VFSObject._prepare

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

file_type_map

Value:
{lambda obj: obj.isfile(): vfstypes.VFSTypeFile(), lambda obj: obj.isd\
ir(): vfstypes.VFSTypeDir(), lambda obj: obj.issym(): vfstypes.VFSType\
Link(), lambda obj: obj.ischr(): vfstypes.VFSTypeChar(), lambda obj: o\
bj.isblk(): vfstypes.VFSTypeBlock(), lambda obj: obj.isfifo(): vfstype\
s.VFSTypeFifo(),}