-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
aws s3 ls on non-existent prefix returns error code 1 #5544
Comments
Hi @alexvanacker, thanks for the offer to contribute! Can you let me know where the issue is? The AWS CLI documentation lives in different places. |
Ah can you tell me where it is so I can contribute? The idea is that the documentation doesn't show that aws s3 ls returns 1 when the object doesn't exist. |
Do you mean if you do something like:
Which also shows on this page: https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html Or, does it exist in the developer guide, like here: https://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3.html |
@kdaily I was indeed talking about https://docs.aws.amazon.com/cli/latest/reference/s3/ls.html |
The examples section for that page is here: https://github.com/aws/aws-cli/blob/develop/awscli/examples/s3/ls.rst Thanks! |
Can you describe which example or part of the documentation is incorrect? Thanks! |
Oh sorry, this one left my radar because of "business emergencies" ;) The part that is incomplete (more than incorrect) is:
When there are no objects, or the prefixes don't exist, the output is indeed |
I tried editing the file you mentionned with my suggestion, but when running
in the |
Hi @alexvanacker, you can open a PR against |
Greetings! It looks like this issue hasn’t been active in longer than one year. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Hi, I would propose reopening this. It causes trouble especially when you are trying to run Is there a better way of doing this? My use case is gating execution of an s3 sync based on whether the target folder exists. I don't want to execute a sync that will overwrite things. alexvanacker summarized the issue pretty well, I would maybe go as far as to say the output should not be an error though. What do folks think? Is it a legit use case to call Thanks! |
I'm running into the same issue ( @kdaily , is there a way to reopen this issue and fix it somehow on the
Is it possible to implement any of the above options? If so, which of them fits most into |
this affects also me ☝🏻 |
To @perfectrecdan or others trying to use this command in a script, you may wish to try using
|
FYI @cenit and anyone else following this issue because of |
yes, i noticed your work immediately. |
Confirm by changing [ ] to [x] below:
Issue is about usage on:
Platform/OS/Hardware/Device
What are you running the cli on? Ubuntu but not relevant
Describe the question
When reading the code for the command
aws s3 ls
(aws-cli/awscli/customizations/s3/subcommands.py
Line 563 in b5e331e
This is not correctly detailed in the documentation. I would like to open an issue and a PR to suggest a documentation improvement. What is the process for pure documentation issues?
Logs/output
Not relevant here.
The text was updated successfully, but these errors were encountered: