|
|
__init__(self,
fileobj,
tdp=None,
dirpath=None,
partname=None,
permname=None,
remname=None)
Initializer. |
source code
|
|
|
|
write(self,
buf)
Write fileobj, return result of write() |
source code
|
|
|
|
|
|
|
to_partial(self)
We have achieved the first checkpoint, make file visible and
permanent. |
source code
|
|
|
|
to_remote(self)
We have written the last checkpoint, now encrypt or compress and
send a copy of it to the remote for final storage. |
source code
|
|
|
|
to_final(self)
We are finished, rename to final, gzip if needed. |
source code
|
|
|
|
read(self,
length=-1)
Read fileobj, return result of read() |
source code
|
|
|
|
close(self)
Close fileobj, running hooks right afterwards |
source code
|
|
|
|
addhook(self,
hook)
Add hook (function taking no arguments) to run upon closing |
source code
|
|