Table of Contents

Class: TemporaryDirectory qm/temporary_directory.py

A TemporaryDirectory is a directory for temporary files.

Creating a new 'TemporaryDirectory results in the creation of a new directory in the file system. The directory is automatically removed from the file system when the TemporaryDirectory is destroyed.

Methods   
GetPath
Remove
__RemoveDirectory
__del__
__init__
  GetPath 
GetPath ( self )

Returns the path to the temporary directory.

returns
The path to the temporary directory.
  Remove 
Remove ( self )

Remove the temporary directory.

Removes the temporary directory, and all files and directories contained within it, from the file system.

  __RemoveDirectory 
__RemoveDirectory ( self,  path )

Remove the directory path.

Removes path, after first removing all of its contents.

  __del__ 
__del__ ( self )

  __init__ 
__init__ ( self )

Construct a new 'TemporaryDirectory.

Exceptions   
qm.common.QMException, qm.error("temp dir error", dir_path = dir_path, exc_class = str(exc_info [ 0 ] ), exc_arg = str(exc_info [ 1 ] ) )

Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1