| Trees | Indices | Help |
|
|---|
|
|
Split up an incoming fileobj into multiple volumes on disk
This class can also be used as an iterator. It returns the filenames of the files it writes.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
volume_size = 52428800
|
|||
blocksize = 65536
|
|||
|
|||
FileVolumeWriter initializer infp is a file object opened for reading. It will be closed at end. file_prefix is the full path of the volumes that will be written. If more than one is required, it will be appended with .1, .2, etc. |
Write self.volume_size bytes from self.infp to outfp Return None if we have reached end of infp without reaching volume size, and false otherwise. |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Fri Aug 28 09:31:43 2009 | http://epydoc.sourceforge.net |