fs.wrapfs¶
-
class
fs.wrapfs.
WrapFS
(wrap_fs)¶ ” 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
()¶ Get the filesystem.
This method should return a filesystem for methods not associated with a path, e.g.
getmeta()
.
-
delegate_path
(path)¶ Encode a path for proxied filesystem.
参数: path (str) – A path on the fileystem. 返回: a tuple of <filesystem>, <new path> 返回类型: tuple
-