class documentation

class MockFSObjectBase(FSObjectBase): (source)

Known subclasses: zim.newfs.mock.MockFile, zim.newfs.mock.MockFolder

View In Hierarchy

Undocumented

Method __eq__ Undocumented
Method __init__ Undocumented
Method copyto Undocumented
Method ctime Undocumented
Method exists Undocumented
Method isequal No summary
Method iswritable Undocumented
Method moveto Undocumented
Method mtime Undocumented
Method parent Undocumented
Method remove Undocumented
Method _mock_copyto Undocumented
Method _node Undocumented
Method _remove Undocumented
Method _set_mtime Undocumented
Instance Variable _fs Undocumented

Inherited from FSObjectBase:

Method touch Undocumented
Instance Variable watcher Undocumented
Method _cleanup Undocumented
Method _moveto Undocumented

Inherited from FilePath (via FSObjectBase):

Class Method new_from_zim_config Returns a new object based on the string representation for that path
Method __repr__ Undocumented
Method __str__ Undocumented
Method commonparent Undocumented
Method get_abspath No summary
Method get_childpath Undocumented
Method ischild Undocumented
Method parents Undocumented
Method relpath Undocumented
Method serialize_zim_config Returns the file path as string for serializing the object
Class Variable __slots__ Undocumented
Instance Variable islocal Undocumented
Instance Variable path Undocumented
Instance Variable pathnames Undocumented
Property basename Undocumented
Property dirname Undocumented
Property uri Undocumented
Property userpath Undocumented
def __eq__(self, other): (source)

Undocumented

def __init__(self, path, watcher=None, _fs=None): (source)
def copyto(self, other): (source)

Undocumented

def ctime(self): (source)

Undocumented

def exists(self): (source)
def isequal(self, other): (source)
Check file paths are equal based on stat results (inode number etc.). Intended to detect when two files or dirs are the same on case-insensitive filesystems. Does not explicitly check the content is the same.
Parameters
otheran other FilePath object
Returns
True when the two paths are one and the same file
def iswritable(self): (source)
def moveto(self, other): (source)

Undocumented

def mtime(self): (source)

Undocumented

def parent(self): (source)

Undocumented

def remove(self, cleanup=True): (source)

Undocumented

def _mock_copyto(self, other): (source)

Undocumented

def _node(self): (source)
def _remove(self, removechildren=False): (source)

Undocumented

def _set_mtime(self, mtime): (source)

Undocumented