diff --git a/melamine/classes.py b/melamine/classes.py index 9cd346c..a757da6 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.inode, "-delete") + proc = await asyncio.create_subprocess_exec("find", str(self.mount_point), "-inum", str(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.inode, "-delete") + proc = await asyncio.create_subprocess_exec("find", str(self.mount_point), "-inum", str(self.inode), "-delete") stdout, _ = await proc.communicate() if proc.returncode != 0: