FilesystemState

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=1]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.ContextManager.ContextManager" [URL="../api/abjad/system/ContextManager.html#abjad.system.ContextManager.ContextManager", label="Context\nManager", shape=oval, style=bold, target=_top]; "abjad.system.FilesystemState.FilesystemState" [URL="../api/abjad/system/FilesystemState.html#abjad.system.FilesystemState.FilesystemState", color=black, fontcolor=white, label="Filesystem\nState", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.ContextManager.ContextManager"; "abjad.system.ContextManager.ContextManager" -> "abjad.system.FilesystemState.FilesystemState"; } subgraph cluster_builtins { graph [label=builtins]; node [color=2]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.system.FilesystemState.FilesystemState(keep=None, remove=None)

Filesystem state context manager.


Attributes Summary

__enter__ Backs up filesystem assets.
__exit__ Restores filesytem assets and removes backups; also removes paths in remove list.
keep Gets asset paths to restore on exit.
remove Gets paths to remove on exit.

Special methods

__enter__()

Backs up filesystem assets.

Returns none.

__exit__(exg_type, exc_value, trackeback)

Restores filesytem assets and removes backups; also removes paths in remove list.

Returns none.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Read-only properties

keep

Gets asset paths to restore on exit.

Returns tuple.

remove

Gets paths to remove on exit.

Returns tuple.