aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive/Storage
diff options
context:
space:
mode:
Diffstat (limited to 'FuseArchive/Storage')
-rw-r--r--FuseArchive/Storage/FileSystem.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/FuseArchive/Storage/FileSystem.py b/FuseArchive/Storage/FileSystem.py
index 04c6bb9..b5d5222 100644
--- a/FuseArchive/Storage/FileSystem.py
+++ b/FuseArchive/Storage/FileSystem.py
@@ -1,4 +1,4 @@
-import FuseArchive, logging, os, sha
+import FuseArchive, logging, os, sha, sys
from binascii import hexlify
from FuseArchive.Chunk import Chunk
@@ -22,6 +22,9 @@ def inc_chunk( key, count ):
logging.debug( "Freeing chunk" )
os.unlink( path )
+ # TODO: it would be nice if we were to clear out empty directories
+ # here
+
def lock_chunk( key ):
inc_chunk( key, 1 )