aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-08-07 05:51:45 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-08-07 05:51:45 (GMT)
commit1634757df06adefdd30975839d60f03618916fd0 (patch)
treed6c964040f4d67b0acf4503ff0c26325d238a098
parent16b950060f30fd1793608d2b14f2de235b0d8c83 (diff)
downloadfusearchive-1634757df06adefdd30975839d60f03618916fd0.zip
fusearchive-1634757df06adefdd30975839d60f03618916fd0.tar.gz
fusearchive-1634757df06adefdd30975839d60f03618916fd0.tar.bz2
Added note about wanting to delete empty directories
-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 )