OpenQuizz
Une application de gestion des contenus pédagogiques
IndexEntry Class Reference
Inheritance diagram for IndexEntry:
Collaboration diagram for IndexEntry:

Public Member Functions

def ctime (self)
 
def mtime (self)
 
def dev (self)
 
def inode (self)
 
def uid (self)
 
def gid (self)
 
def size (self)
 
def from_base (cls, base)
 
def from_blob (cls, blob, stage=0)
 
- Public Member Functions inherited from BaseIndexEntry
def __str__ (self)
 
def __repr__ (self)
 
def mode (self)
 
def binsha (self)
 
def hexsha (self)
 
def stage (self)
 
def path (self)
 
def flags (self)
 
def to_blob (self, repo)
 

Detailed Description

Allows convenient access to IndexEntry data without completely unpacking it.

Attributes usully accessed often are cached in the tuple whereas others are
unpacked on demand.

See the properties for a mapping between names and tuple indices. 

Member Function Documentation

◆ ctime()

def ctime (   self)
:return:
    Tuple(int_time_seconds_since_epoch, int_nano_seconds) of the
    file's creation time

◆ dev()

def dev (   self)
Device ID 

◆ from_base()

def from_base (   cls,
  base 
)
:return:
    Minimal entry as created from the given BaseIndexEntry instance.
    Missing values will be set to null-like values

:param base: Instance of type BaseIndexEntry

◆ from_blob()

def from_blob (   cls,
  blob,
  stage = 0 
)
:return: Minimal entry resembling the given blob object

Reimplemented from BaseIndexEntry.

◆ gid()

def gid (   self)
Group ID 

◆ inode()

def inode (   self)
Inode ID 

◆ mtime()

def mtime (   self)
See ctime property, but returns modification time 

◆ size()

def size (   self)
:return: Uncompressed size of the blob 

◆ uid()

def uid (   self)
User ID 

The documentation for this class was generated from the following file: