store backup: --to refuses an existing folder

Open Beginner friendly
#585 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
cli

Research direction

Start by reading the motif store backup --to <dir> destination validation and the behavior described in #462/#465. Check how it distinguishes Motif-owned paths and existing folders; done means an existing empty folder is accepted and a non-empty folder is refused with a message that names the blocking case.

Written by the indexing model from the issue text.

Description

Finding: motif store backup --to <dir> refuses a destination folder that already exists.

Seen in the Tamil lane (Motif fe2299b4a). Backups before each runtime switch go to a per-day folder, and a re-run the same day, or a folder the lane created first, is refused. (From #462/#465: the destination must be owned and outside Motif's own folders; an existing empty folder should satisfy that.)

Expected: accept an existing empty folder; refuse a non-empty one with a message naming what is in the way (or allow --force to add a new timestamped subfolder). Say in the refusal code which case applied.

Cost: the lane makes a unique folder name per run and cleans up the failed ones by hand.

Dominant language
C#
Stars
1
Forks
0
Avg merge
6h 4m
Merged PRs (30d)
156

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sillsdev/motif

All issues in sillsdev/motif

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.