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

No error code on non-existent object (?) #1382

Open
sgofferj opened this issue Jun 12, 2024 · 0 comments
Open

No error code on non-existent object (?) #1382

sgofferj opened this issue Jun 12, 2024 · 0 comments

Comments

@sgofferj
Copy link

I'm currently trying to rewrite a bash script which copies files from a camera via curl to a WEBDAV server to upload the files to S3 storage. Part of this is to check if folders for month and day exist and if not, create them.

While testing, I did ${S3CMD} ls s3://bodycam/2024/${MONTH} && echo yes || echo no

I noticed that s3cmd seems to always return 0, no matter if the operation was successful, i.e. if the folder exists or not I always get "yes".
Not sure if that makes sense...

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