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.
source code
 
GetPath(self)
Returns the path to the temporary directory.
source code
 
__del__(self) source code
 
Remove(self)
Remove the temporary directory.
source code
 
__RemoveDirectory(self, path)
Remove the directory 'path'.
source code
Method Details [hide private]

GetPath(self)

source code 

Returns the path to the temporary directory.

returns -- The path to the temporary directory.

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.