diff options
-rw-r--r-- | FuseArchive/FileSystem.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FuseArchive/FileSystem.py b/FuseArchive/FileSystem.py index b393dbb..e70bba6 100644 --- a/FuseArchive/FileSystem.py +++ b/FuseArchive/FileSystem.py @@ -47,6 +47,10 @@ class FileSystem(fuse.Fuse): yield fuse.Direntry(e) def unlink(self, path): + # Do a truncate to free our chunks + f = ChunkFile( path, os.O_RDWR, 0 ) + f.truncate( 0 ) + f.release( 0 ) os.unlink("./tree" + path) def rmdir(self, path): |