ganeti :: utils :: io :: TemporaryFileManager :: Class TemporaryFileManager
[hide private]
[frames] | no frames]

Class TemporaryFileManager

source code


Stores the list of files to be deleted and removes them on demand.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__del__(self) source code
 
Add(self, filename)
Add file to list of files to be deleted.
source code
 
Remove(self, filename)
Remove file from list of files to be deleted.
source code
 
Cleanup(self)
Delete all files marked for deletion
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Add(self, filename)

source code 

Add file to list of files to be deleted.

Parameters:
  • filename (string) - path to filename to be added

Remove(self, filename)

source code 

Remove file from list of files to be deleted.

Parameters:
  • filename (string) - path to filename to be deleted