From 1634757df06adefdd30975839d60f03618916fd0 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Thu, 6 Aug 2009 22:51:45 -0700 Subject: Added note about wanting to delete empty directories 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 ) -- cgit v0.10.2