locationtech / locationtech/geomesa
Convert CLI should prompt to overwrite existing file
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.5k
- Forks
- 446
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 31
Description
Convert CLI should prompt to overwrite existing file
ExportCommand:356 uses CreateMode.Create which throws
java.nio.file.FileAlreadyExistsException: File already exists for mode 'create': foo
when the file exists
Original JIRA Issue: https://geomesa.atlassian.net/browse/GEOMESA-3064
Key: GEOMESA-3064
Type: Improvement
Priority: Major
Status: To Do
Resolution: Unresolved
Reporter: Austin Heyne
Created: Mon, 3 May 2021 13:12:33 -0400
Updated: Mon, 3 May 2021 19:20:51 -0400
Component(s): Command Line Tools
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at ExportCommand:356 and inspect how the Convert CLI handles CreateMode.Create when the destination file already exists. Review the relevant CLI test coverage, then verify that an existing file triggers an overwrite prompt and that the command behaves correctly for the user's response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100