class documentation

class MultiplexedPath(abc.Traversable): (source)

View In Hierarchy

Given a series of Traversable objects, implement a merged version of the interface across all objects. Useful for namespace packages which may be multihomed at a single name.

Method __init__ Undocumented
Method __repr__ Undocumented
Method is_dir Return True if self is a directory
Method is_file Return True if self is a file
Method iterdir Yield Traversable objects in self
Method joinpath Return Traversable resolved with any descendants applied.
Method open mode may be 'r' or 'rb' to open as text or binary. Return a handle suitable for reading (same as pathlib.Path.open).
Method read_bytes Read contents of self as bytes
Method read_text Read contents of self as text
Property name The base name of this object without any parent references.
Instance Variable _paths Undocumented

Inherited from Traversable:

Method __truediv__ Return Traversable child in self
def __init__(self, *paths): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def is_dir(self): (source)

Return True if self is a directory

def is_file(self): (source)

Return True if self is a file

def iterdir(self): (source)

Yield Traversable objects in self

def joinpath(self, *descendants): (source)

Return Traversable resolved with any descendants applied. Each descendant should be a path segment relative to self and each may contain multiple levels separated by ``posixpath.sep`` (``/``).

def open(self, *args, **kwargs): (source)

mode may be 'r' or 'rb' to open as text or binary. Return a handle suitable for reading (same as pathlib.Path.open). When opening as text, accepts encoding parameters such as those accepted by io.TextIOWrapper.

def read_bytes(self): (source)
def read_text(self, *args, **kwargs): (source)

The base name of this object without any parent references.

Undocumented