From 911a45d2a886e9c807df2235e698443a63bebc0a Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 12:22:26 -0700 Subject: [PATCH] Implemented Shred*.get_inode() as an attribute instead --- melamine/classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/melamine/classes.py b/melamine/classes.py index 2452ca4..9cd346c 100644 --- a/melamine/classes.py +++ b/melamine/classes.py @@ -69,7 +69,7 @@ class ShredDir(AsyncObject): for path in self.contents: await path.delete_hardlinks_by_inode() - proc = await asyncio.create_subprocess_exec("find", str(self.mount_point), "-inum", self.get_inode(), "-delete") + proc = await asyncio.create_subprocess_exec("find", str(self.mount_point), "-inum", self.inode, "-delete") stdout, _ = await proc.communicate() if proc.returncode != 0: @@ -164,7 +164,7 @@ class ShredFile(AsyncObject): return hash(self.absolute_path) async def delete_hardlinks_by_inode(self) -> None: - proc = await asyncio.create_subprocess_exec("find", str(self.mount_point), "-inum", self.get_inode(), "-delete") + proc = await asyncio.create_subprocess_exec("find", str(self.mount_point), "-inum", self.inode, "-delete") stdout, _ = await proc.communicate() if proc.returncode != 0: