Only compute directory size when delete is done.

Gah. Was doing this on every delete operation.

Change-Id: Ie207fd94b713c550265676716a7d206fc20763de
This commit is contained in:
Sandy Walsh 2015-03-26 12:34:17 -07:00
parent aecc00d485
commit 346fd39d24
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[metadata]
name = shoebox
version = 0.41
version = 0.42
author = Dark Secret Software Inc.
author-email = admin@darksecretsoftware.com
summary = data archiving library

View File

@ -203,7 +203,7 @@ class WritingJSONRollManager(object):
full = os.path.join(self.directory, f)
if os.path.isfile(full):
os.remove(full)
self.directory_size = self._get_directory_size()
self.directory_size = self._get_directory_size()
def write(self, metadata, json_payload):
# Metadata is ignored.