Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list Call NameLoad NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str attr handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Assign NameStore ListLoad orelse Assign NameStore ListComp Call NameLoad keyword NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str attr Call AttributeLoad Str attr BinOpAdd ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad Str attr Call AttributeLoad Str attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr Num Num TryExcept body Assign NameStore Call NameLoad keyword NameLoad keyword Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Pass decorator_list NameLoad decorator_list Call NameLoad NameLoad Call NameLoad ListLoad Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Str keyword Call NameLoad keyword Call NameLoad keyword NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call AttributeLoad Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr attr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareLt AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr attr Str orelse If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad Call AttributeLoad NameLoad attr attr body Return Call NameLoad Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad Call AttributeLoad NameLoad attr attr body Return Call NameLoad Call NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad Call AttributeLoad NameLoad attr Str attr body Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr attr Str orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword Call NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list decorator_list Call NameLoad NameLoad
N/A N/A In-memory fake filesystem APIs, for use with unit tests. __future__ absolute_import errno ENOENT contextlib contextmanager tarfile TarFile io BytesIO zope.interface implementer characteristic with_init with_cmp with_repr twisted.internet.defer succeed fail twisted.application.service Service errors MaximumSizeTooSmall interfaces IFilesystemSnapshots IStoragePool IFilesystem FilesystemAlreadyExists zfs Snapshot _model VolumeSize CannedFilesystemSnapshots N/A object N/A N/A In-memory filesystem snapshotter. __init__ N/A N/A self results N/A N/A N/A 
        :param results: A ``list`` of ``Deferred`` instances, results of
        calling ``create()``.
         N/A N/A self _results results N/A N/A self _snapshots N/A N/A create N/A N/A self name N/A N/A N/A d N/A N/A N/A self _results pop 0 N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A N/A self _snapshots append name N/A d N/A list N/A N/A self N/A N/A N/A N/A succeed N/A self _snapshots N/A N/A N/A implementer IFilesystemSnapshots DirectoryFilesystem N/A object N/A N/A 
    A directory pretending to be an independent filesystem.

    Snapshots are also supported in a pretend way.  A file is kept in the
    directory recording the names of snapshots which supposedly have been
    taken.  No other state related to snapshots is tracked (eg, the state of
    the directory at the time of those snapshots is not recorded).

    :ivar FilePath path: The directory where data for this "filesystem" is
        stored.
     get_path N/A N/A self N/A N/A N/A N/A self path N/A _snapshots N/A N/A self N/A N/A N/A 
        Load the pretend snapshot data.

        :return: A ``list`` of ``Snapshot`` instances.  These will correspond
            to the pretend snapshots taken by the ``snapshot`` method.
         N/A N/A N/A data N/A N/A N/A N/A N/A N/A self get_path child .snapshots getContent N/A N/A N/A IOError N/A e N/A N/A N/A N/A e errno ENOENT N/A N/A N/A snapshots N/A N/A N/A snapshots N/A N/A Snapshot name name N/A name N/A N/A data splitlines N/A snapshots N/A snapshots N/A N/A self N/A N/A N/A 
        Retrieve the snapshots which were previously taken, for pretend.
         N/A N/A succeed N/A N/A self _snapshots N/A snapshot N/A N/A self name N/A N/A N/A 
        Pretend to take a snapshot.  Assign it the given name.
         N/A N/A N/A N/A N/A N/A N/A self get_path child .snapshots setContent N/A N/A join N/A N/A N/A snapshot name N/A snapshot N/A N/A self _snapshots N/A name N/A reader N/A N/A self remote_snapshots N/A None N/A N/A 
        Package up filesystem contents as a tarball.
         N/A result N/A BytesIO N/A tarball N/A TarFile fileobj result mode w N/A child N/A N/A N/A self path children N/A N/A N/A N/A tarball add N/A child path arcname N/A N/A child basename recursive True N/A N/A N/A tarball close N/A remote_snapshots N/A N/A N/A N/A result write N/A N/A N/A N/A 
incremental stream based on
{} format N/A N/A join N/A N/A snapshot name N/A snapshot remote_snapshots encode ascii N/A N/A N/A result seek 0 0 N/A N/A result N/A contextmanager writer N/A N/A self N/A N/A N/A Expect written bytes to be a tarball. N/A result N/A BytesIO N/A N/A result N/A N/A N/A result seek 0 0 N/A N/A N/A tarball N/A TarFile fileobj result mode r N/A N/A N/A N/A self path exists N/A N/A N/A N/A N/A self path remove N/A N/A N/A N/A self path createDirectory N/A N/A N/A tarball extractall N/A N/A self path path N/A N/A N/A N/A N/A contextmanager N/A N/A implementer IFilesystem N/A with_cmp N/A path N/A with_repr N/A path size N/A with_init N/A path size defaults N/A dict size N/A VolumeSize maximum_size None FilesystemStoragePool N/A Service N/A N/A 
    A :class:`IStoragePool` implementation that just creates directories.

    Rather than mounting actual filesystems, they are emulated by simply
    creating a directory for each filesystem.
     __init__ N/A N/A self root N/A N/A N/A 
        :param FilePath root: The root directory.
         N/A N/A self _root root N/A N/A N/A N/A N/A self _root exists N/A N/A N/A N/A N/A self _root createDirectory N/A create N/A N/A self volume N/A N/A N/A filesystem N/A N/A self get volume N/A root N/A N/A filesystem get_path N/A N/A N/A root makedirs N/A N/A N/A N/A volume size maximum_size None N/A N/A N/A N/A N/A N/A root child .size setContent N/A N/A N/A N/A {0} format N/A N/A volume size maximum_size encode ascii N/A N/A succeed filesystem N/A destroy N/A N/A self volume N/A N/A N/A filesystem N/A N/A self get volume N/A root N/A N/A filesystem get_path N/A N/A N/A root remove N/A N/A succeed None N/A set_maximum_size N/A N/A self volume N/A N/A N/A filesystem N/A N/A self get volume N/A root N/A N/A filesystem get_path get_size N/A N/A N/A N/A N/A total_size 0 N/A f N/A N/A root walk N/A N/A N/A N/A N/A f isdir N/A N/A total_size N/A N/A f getsize N/A total_size N/A N/A current_size N/A get_size N/A size_path N/A N/A root child .size N/A N/A N/A N/A volume size maximum_size None N/A N/A N/A N/A N/A volume size maximum_size current_size N/A N/A N/A MaximumSizeTooSmall N/A N/A N/A size_path setContent N/A N/A N/A N/A {0} format N/A N/A volume size maximum_size encode ascii N/A N/A N/A N/A size_path exists N/A N/A N/A N/A size_path remove N/A N/A succeed filesystem N/A clone_to N/A N/A self parent volume N/A N/A N/A parent N/A N/A self get parent N/A child N/A N/A self get volume N/A N/A N/A N/A N/A child get_path exists N/A N/A N/A fail N/A FilesystemAlreadyExists N/A d N/A N/A self create volume N/A N/A N/A parent reader reader N/A N/A N/A N/A child writer writer N/A N/A N/A N/A writer write N/A N/A reader read N/A d N/A change_owner N/A N/A self volume new_volume N/A N/A N/A old_filesystem N/A N/A self get volume N/A new_filesystem N/A N/A self get new_volume N/A N/A N/A N/A N/A new_filesystem get_path exists N/A N/A N/A fail N/A FilesystemAlreadyExists N/A N/A N/A N/A N/A old_filesystem get_path moveTo N/A N/A new_filesystem get_path N/A N/A succeed new_filesystem N/A get N/A N/A self volume N/A N/A N/A N/A DirectoryFilesystem path N/A N/A N/A self _root child N/A %s.%s N/A N/A N/A N/A volume node_id encode ascii N/A N/A N/A volume name to_bytes size N/A volume size N/A enumerate N/A N/A self N/A N/A N/A filesystems N/A set N/A N/A N/A N/A self _root isdir N/A N/A path N/A N/A N/A self _root children N/A N/A N/A N/A N/A N/A path child .size exists N/A N/A maximum_size N/A int N/A N/A N/A N/A N/A N/A path child .size getContent decode ascii N/A N/A maximum_size None N/A N/A N/A filesystems add N/A DirectoryFilesystem path path size N/A VolumeSize maximum_size maximum_size N/A N/A succeed filesystems N/A N/A N/A implementer IStoragePool