Sub Filesystem

Manage a directory in a parent filesystem.

class fs.subfs.ClosingSubFS(parent_fs, path)

A version of SubFS which closes its parent when closed.

class fs.subfs.SubFS(parent_fs, path)

A sub-directory on another filesystem.

A SubFS is a filesystem object that maps to a sub-directory of another filesystem. This is the object that is returned by opendir.