qm :: temporary_directory :: TemporaryDirectory :: Class TemporaryDirectory
[hide private]
[frames] | no frames]

Class TemporaryDirectory
source code

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.

Instance Methods [hide private]
  __init__(self)
Construct a new 'TemporaryDirectory.
  GetPath(self)
Returns the path to the temporary directory.
  __del__(self)
  Remove(self)
Remove the temporary directory.
  __RemoveDirectory(self, path)
Remove the directory 'path'.

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Construct a new 'TemporaryDirectory.

GetPath(self)

source code 

Returns the path to the temporary directory.

returns -- The path to the temporary directory.

__del__(self)
(Destructor)

source code 

Remove(self)

source code 

Remove the temporary directory.

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

__RemoveDirectory(self, path)

source code 

Remove the directory 'path'.

Removes 'path', after first removing all of its contents.