OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, path=None, delete=_default, kind="temp", globally_managed=False) |
def | path (self) |
def | __repr__ (self) |
def | __enter__ (self) |
def | __exit__ (self, exc, value, tb) |
def | cleanup (self) |
Data Fields | |
delete | |
kind | |
Helper class that owns and cleans up a temporary directory. This class can be used as a context manager or as an OO representation of a temporary directory. Attributes: path Location to the created temporary directory delete Whether the directory should be deleted when exiting (when used as a contextmanager) Methods: cleanup() Deletes the temporary directory When used as a context manager, if the delete attribute is True, on exiting the context the temporary directory is deleted.
def __init__ | ( | self, | |
path = None , |
|||
delete = _default , |
|||
kind = "temp" , |
|||
globally_managed = False |
|||
) |
def __enter__ | ( | self | ) |
def __exit__ | ( | self, | |
exc, | |||
value, | |||
tb | |||
) |
def __repr__ | ( | self | ) |
def cleanup | ( | self | ) |
Remove the temporary directory created and reset state
def path | ( | self | ) |
delete |
kind |