Package duplicity :: Module dup_temp
[hide private]
[frames] | no frames]

Module dup_temp

source code

Manage temporary files

Classes [hide private]
  TempPath
Path object used as a temporary file
  TempDupPath
Like TempPath, but build around DupPath
  FileobjHooked
Simulate a file, but add hook on close
  Block
Data block to return from SrcIter
  SrcIter
Iterate over source and return Block of data.
Functions [hide private]
 
new_temppath()
Return a new TempPath
source code
 
get_fileobj_duppath(dirpath, partname, permname, remname)
Return a file object open for writing, will write to filename
source code
 
new_tempduppath(parseresults)
Return a new TempDupPath, using settings from parseresults
source code
Function Details [hide private]

get_fileobj_duppath(dirpath, partname, permname, remname)

source code 

Return a file object open for writing, will write to filename

Data will be processed and written to a temporary file. When the return fileobject is closed, rename to final position. filename must be a recognizable duplicity data file.