From c6d797295fea8cb72838ee810e500b9c1d969a77 Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 11:23:16 -0700 Subject: [PATCH] Re-order ShredDir attributes after borking --- melamine/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melamine/classes.py b/melamine/classes.py index 921ca97..c95c012 100644 --- a/melamine/classes.py +++ b/melamine/classes.py @@ -45,12 +45,12 @@ class ShredDir(AsyncObject): async def __init__(self, path: Path) -> None: self.absolute_path = path.resolve() - self.byte_size = sum(item.byte_size for item in self.contents) self.mount_point = find_mount(self.absolute_path) self.contents = await self._get_contents() self.mount_points = set(m for m in self.get_mount_points()) self.mount_points.add(self.mount_point) self.fs_handler = mount_to_fs_handler(self.mount_point) + self.byte_size = sum(item.byte_size for item in self.contents) async def _get_contents(self) -> List: contents = []