fs.wrapfs¶

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.

delegate_fs()[source]

Get the proxied filesystem.

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

delegate_path(path)[source]

Encode a path for proxied filesystem.

Parameters: path (str) – A path on the filesystem. a tuple of (, ) (FS, str)