summaryrefslogtreecommitdiff
path: root/obnamlib/fmt_ga/dirobj.py
diff options
context:
space:
mode:
Diffstat (limited to 'obnamlib/fmt_ga/dirobj.py')
-rw-r--r--obnamlib/fmt_ga/dirobj.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/dirobj.py b/obnamlib/fmt_ga/dirobj.py
index 64c333d1..03e0cc65 100644
--- a/obnamlib/fmt_ga/dirobj.py
+++ b/obnamlib/fmt_ga/dirobj.py
@@ -53,12 +53,16 @@ _key_from_short = dict((v, k) for k, v in _short_key_names.items())
class GADirectory(object):
def __init__(self):
+ obnamlib.object_created(self)
self._dict = {
'metadata': {},
'subdirs': {},
}
self._mutable = True
+ def __del__(self):
+ obnamlib.object_deleted(self, self._dict)
+
def is_mutable(self):
return self._mutable