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

[upload] The behavior of -force-overwrite is ambiguous #490

Open
3 tasks
nanjiangshu opened this issue Jan 15, 2025 · 0 comments
Open
3 tasks

[upload] The behavior of -force-overwrite is ambiguous #490

nanjiangshu opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nanjiangshu
Copy link
Contributor

Describe the bug
When the flag -force-overwrite is set, for example

sda-cli -config s3cmd.conf upload --force-overwrite  -encrypt-with-key c4gh.pub.pem t1.txt

The command will exit with an error:

Skipping input file t1.txt. Reason: outfile t1.txt.c4gh already exists. 

One would expect it overwrites both the local encrypted file and force uploads the file to the inbox.

Steps to reproduce

Expected behavior

  • The behavior of -force-overwrite should be clear and more intuitive.
  • Tests verifying the fix are added

Additional context

Estimation of size: small/medium/big

Estimation of priority: low/medium/high

@nanjiangshu nanjiangshu added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant