Remove redundant check

This commit is contained in:
Alexander Wainwright
2025-06-24 14:19:59 +10:00
parent 9fee5f1b3c
commit 568ba0fb7c

View File

@@ -69,15 +69,6 @@ def run_mount(args: argparse.Namespace) -> int:
return 1
archive_spec = f'{repo}::{archive_name}'
# Check mountpoint
mountpoint = args.mountpoint
if not os.path.isdir(mountpoint):
print(
f"Mountpoint '{mountpoint}' does not exist or is not a directory.",
file=sys.stderr,
)
return 1
# Run borg mount
cmd = ['borg', 'mount', archive_spec, mountpoint]
try: