aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive
diff options
context:
space:
mode:
Diffstat (limited to 'FuseArchive')
-rw-r--r--FuseArchive/ChunkBuffer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/FuseArchive/ChunkBuffer.py b/FuseArchive/ChunkBuffer.py
index 7b6beee..89d468e 100644
--- a/FuseArchive/ChunkBuffer.py
+++ b/FuseArchive/ChunkBuffer.py
@@ -27,6 +27,10 @@ class ChunkBuffer:
return l
+ def truncate( self, l ):
+ s = ''.join( self.chunk )
+ self.chunk = [ s[ :l ] ]
+
def _simplify( self ):
logging.debug( "Simplify!" )
self.chunk = [ ''.join( self.chunk ) ]