dandi / dandi/dandi-cli

organize: add optional `--disappeared=error|remove` or `--mode=complete|incremental`

Open
#47 5 comments 0 reactions 0 assignees View on GitHub
cmd-organize
Dominant language
Python
Stars
28
Forks
37
Avg merge
1d 17h
Merged PRs (30d)
9

Description

If `organize` is (re)run on a full collection of files, some of which were modified, then by "injecting" new files and leaving previously organized ones we might end up breeding some . With something like `--disappeared` we could detect which paths were no longer considered and offer to remove them.

Alternatively - we could make a default mode to be "complete" (default) which would imply removing files which were not "re-organized" (probably should ask first since could lead to the loss of data) and only by adding explicit `--mode=incremental` (complete - default) new file added in, while allowing all previous stick around.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `organize` command entry point and trace how it identifies files that are re-organized versus previously organized. The issue presents two competing interfaces, so first establish whether `--disappeared` or `--mode` is wanted and how removal should be confirmed. Done means the selected behavior is specified, implemented, and covered for complete and incremental runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.