mirror of
https://github.com/DarrylNixon/melamine.git
synced 2024-04-22 06:27:20 -07:00
Re-order ShredDir attributes after borking
This commit is contained in:
parent
559d63dea9
commit
c6d797295f
1 changed files with 1 additions and 1 deletions
|
@ -45,12 +45,12 @@ class ShredDir(AsyncObject):
|
||||||
|
|
||||||
async def __init__(self, path: Path) -> None:
|
async def __init__(self, path: Path) -> None:
|
||||||
self.absolute_path = path.resolve()
|
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.mount_point = find_mount(self.absolute_path)
|
||||||
self.contents = await self._get_contents()
|
self.contents = await self._get_contents()
|
||||||
self.mount_points = set(m for m in self.get_mount_points())
|
self.mount_points = set(m for m in self.get_mount_points())
|
||||||
self.mount_points.add(self.mount_point)
|
self.mount_points.add(self.mount_point)
|
||||||
self.fs_handler = mount_to_fs_handler(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:
|
async def _get_contents(self) -> List:
|
||||||
contents = []
|
contents = []
|
||||||
|
|
Loading…
Reference in a new issue