Skip to content
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

Change the behavior of options.overwrite #124

Open
sumeetattree opened this issue Jun 20, 2018 · 0 comments
Open

Change the behavior of options.overwrite #124

sumeetattree opened this issue Jun 20, 2018 · 0 comments

Comments

@sumeetattree
Copy link

Ideally I would like control of what happens when a destination file already exists. Currently the behavior is completely halt the process. I think we need a skip behavior as well.

Proposal: Make the overwrite accept string parameters instead of boolean

This way I can just do overwrite: 'skip' and it'll skip the current upload/download and not halt.

I also suggest the following options:

overwrite: 'skip' // skip the upload, log a warning
overwrite: 'force' // log a warning, overwrite the destination file
overwrite: 'halt' // same as current functionality. halts the process completely.

Would you be interested in a pull request?

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

No branches or pull requests

1 participant