fs.wrapfs.lazyfs¶
A class for lazy initialization of an FS object.
This module provides the class LazyFS, an FS wrapper class that can lazily initialize its underlying FS object.
- class fs.wrapfs.lazyfs.LazyFS(fs)¶
Simple ‘lazy initialization’ for FS objects.
This FS wrapper can be created with an FS instance, an FS class, or a (class,args,kwds) tuple. The actual FS instance will be created on demand the first time it is accessed.
- wrapped_fs¶
Obtain the wrapped FS instance, creating it if necessary.