fs.wrapfs

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 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 fileystem.
Returns:a tuple of <filesystem>, <new path>
Return type:tuple