aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive/FileSystem.py
diff options
context:
space:
mode:
Diffstat (limited to 'FuseArchive/FileSystem.py')
-rw-r--r--FuseArchive/FileSystem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/FuseArchive/FileSystem.py b/FuseArchive/FileSystem.py
index e70bba6..16e5b2c 100644
--- a/FuseArchive/FileSystem.py
+++ b/FuseArchive/FileSystem.py
@@ -49,7 +49,7 @@ class FileSystem(fuse.Fuse):
def unlink(self, path):
# Do a truncate to free our chunks
f = ChunkFile( path, os.O_RDWR, 0 )
- f.truncate( 0 )
+ f.ftruncate( 0 )
f.release( 0 )
os.unlink("./tree" + path)