Skip to content

Copilot/rewrite backup device opening again#133

Open
MaxG87 wants to merge 4 commits into
mainfrom
copilot/rewrite-backup-device-opening-again
Open

Copilot/rewrite backup device opening again#133
MaxG87 wants to merge 4 commits into
mainfrom
copilot/rewrite-backup-device-opening-again

Conversation

@MaxG87

@MaxG87 MaxG87 commented Jul 6, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI added 4 commits July 6, 2026 08:55
- Add `OpenDirectory: Path | None = None` to `Configuration` with tilde
  expansion. When set, devices are mounted in named subdirectories under
  this path for both the `open` and `backup` commands.
- Remove the `dest` positional CLI argument from the `open` command.
  Users should use `OpenDirectory` in the config instead.
- Fix the TOML parser to extract all top-level fields (previously fields
  like `SudoPassCmd` were silently dropped in TOML configs).
- Use `mkdir(parents=True, exist_ok=True)` in `_open_device` so the
  full path including `OpenDirectory` is created as needed.
- Update `backup` command to use `OpenDirectory / cfg.Name` as mount
  destination when configured; temp dir (cleaned up afterwards) otherwise.
- Update tests and example configs to reflect the new behaviour.
@MaxG87 MaxG87 force-pushed the copilot/rewrite-backup-device-opening-again branch from 2bb537b to 57e86ea Compare July 6, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants