treatfiles subclass that will compress its files.
Set the ".program" attribute to the program to be used for the
compression. If it is set to None (the default), then KCD files will be
"compress"ed, and all other files "gzip"ped. See makeExt()
still needs beforeloop() and beforefile() methods in a subclass.
|
Methods
|
|
makeExt treatfile
|
|
|
makeExt
|
makeExt ( self, ext )
Set the compression program to add extension ext. |
|
|
treatfile
|
treatfile ( self, filename )
Compress file
|
Exceptions
|
|
IOError("Compression of %s exited with status %d" %( filename, status ) )
|
|
|