Offline Server  1.6
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
MarFileEntry Class Reference
+ Collaboration diagram for MarFileEntry:

Public Member Functions

def __init__
 
def __str__
 
def calc_file_sha_digest
 
def sha
 

Data Fields

 name
 
 abs_path
 
 sha_cache
 

Detailed Description

Represents a file inside a Mozilla Archive Format (MAR)
    abs_path = abspath to the the file
    name =  relative path within the mar.  e.g.
      foo.mar/dir/bar.txt extracted into /tmp/foo:
        abs_path=/tmp/foo/dir/bar.txt
        name = dir/bar.txt

Definition at line 147 of file make_incremental_updates.py.

Constructor & Destructor Documentation

def __init__ (   self,
  root,
  name 
)
root = path the the top of the mar
   name = relative path within the mar

Definition at line 155 of file make_incremental_updates.py.

Member Function Documentation

def __str__ (   self)

Definition at line 162 of file make_incremental_updates.py.

def calc_file_sha_digest (   self,
  filename 
)
Returns sha digest of given filename

Definition at line 165 of file make_incremental_updates.py.

def sha (   self)
Returns sha digest of file repreesnted by this _marfile_entry

Definition at line 170 of file make_incremental_updates.py.

+ Here is the call graph for this function:

Field Documentation

abs_path

Definition at line 159 of file make_incremental_updates.py.

name

Definition at line 158 of file make_incremental_updates.py.

sha_cache

Definition at line 160 of file make_incremental_updates.py.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase