Util Tempdir

Create and remove OS temporary directories.

class dffml.util.tempdir.TempDir[source]

Creates and deletes temporary directories. Removes any created directories when the program using this class terminates (see rmtempdirs for details).

mktempdir()[source]

Creates a temporary directory using TempDir’s SUFFIX and PREFIX. Adds the directory to the to be deleted queue.

rmtempdirs()[source]

Removes all created temporary directories. Decorated with the atexit.register method to ensure all created directories will be removed on termination.