Fix mount point references and some wording

This commit is contained in:
Darryl Nixon 2023-07-16 10:30:39 -07:00
parent bcdd085f91
commit 6269c27244
3 changed files with 4 additions and 3 deletions

View file

@ -20,8 +20,9 @@ class ShredDir:
self.processed = False
self.contents = self._get_contents()
self.byte_size = sum(item.byte_size for item in self.contents)
self.mount_point = find_mount(self.absolute_path)
self.mount_points = set(m for m in self.get_mount_points())
self.mount_points.add(find_mount(self.absolute_path))
self.mount_points.add(self.mount_point)
self.fs_handler = None
def _get_contents(self) -> List:

View file

@ -11,7 +11,7 @@ from .validators import *
def run() -> None:
validate_environment()
parser = ArgumentParser(description="Comprehensive DoD 5220.22-M file shredder for Linux.")
parser = ArgumentParser(description="Comprehensive DoD 5220.22-M-compliant file shredder for Linux.")
parser.add_argument(
"--recursive", "-r", action="store_true", help="Process directories recursively. Default is false."
)

View file

@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "melamine"
version = "0.0.1"
authors = [{ name = "pdf", email = "git@nixon.mozmail.com" }]
description = "A comprehensive file shredder for Linux"
description = "Comprehensive DoD 5220.22-M-compliant file shredder for Linux"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }