Only compute directory size when delete is done.
Gah. Was doing this on every delete operation. Change-Id: Ie207fd94b713c550265676716a7d206fc20763de
This commit is contained in:
parent
aecc00d485
commit
346fd39d24
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user