Skip to content

No prompt: dvc get for an existing file #2845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dmpetrov opened this issue Nov 26, 2019 · 1 comment
Closed

No prompt: dvc get for an existing file #2845

dmpetrov opened this issue Nov 26, 2019 · 1 comment
Labels
enhancement Enhances DVC

Comments

@dmpetrov
Copy link
Member

$ touch small.txt
$ dvc get https://github.com/dmpetrov/dataset1 small.txt
file 'small.txt' is going to be removed. Are you sure you want to proceed? [y/n] y

It is better to get rid of asking prompts from users - see #2498. In this case, failing is the appropriate behavior.

@skshetry
Copy link
Collaborator

dvc get these days fails with:

unexpected error - [Errno 17] File exists: 'small.txt'

However, the messaging could be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances DVC
Projects
None yet
Development

No branches or pull requests

2 participants