Base class for filesystem wrappers.

class fs.wrapfs.WrapFS(wrap_fs)[source]

A proxy for a filesystem object.

This class exposes an filesystem interface, where the data is stored on another filesystem(s), and is the basis for SubFS and other virtual filesystems.


Get the proxied filesystem.

This method should return a filesystem for methods not associated with a path, e.g. getmeta.


Encode a path for proxied filesystem.

Parameters:path (str) – A path on the filesystem.
Returns:a tuple of (<filesystem>, <new_path>)
Return type:(FS, str)