class documentation

class TmpFile(LocalFile): (source)

View In Hierarchy

Class for temporary files. These are stored in the temp directory and by default they are deleted again when the object is destructed.
Method __del__ Undocumented
Method __init__ No summary
Instance Variable persistent Undocumented

Inherited from LocalFile:

Method copyto Undocumented
Method exists Undocumented
Method read Undocumented
Method read_binary Undocumented
Method readline Undocumented
Method readlines Undocumented
Method remove Undocumented
Method size Undocumented
Method touch Undocumented
Method write Undocumented
Method write_binary Undocumented
Method writelines Undocumented
Instance Variable endofline Undocumented
Instance Variable _mimetype Undocumented

Inherited from LocalFSObjectBase (via LocalFile):

Method ctime Undocumented
Method isequal Undocumented
Method iswritable Undocumented
Method moveto Undocumented
Method mtime Undocumented
Method parent Undocumented
Method _set_mtime Undocumented
Method _stat Undocumented
def __del__(self): (source)

Undocumented

def __init__(self, basename, unique=True, persistent=False): (source)
Constructor
Parameters
basenamegives the name for this tmp file.
uniqueif True the Dir.new_file() method is used to make sure we have a new file.
persistentif False the file will be removed when the object is destructed, if True we leave it alone
persistent = (source)

Undocumented