We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
exists
The exists API method returns a structure like {'exists': 'true'} it should be {'exists': True}.
{'exists': 'true'}
{'exists': True}
def url_exists(path): try: head_response = s3.head_object( Bucket=Config.S3_BUCKET_NAME, Key=path, RequestPayer="requester" ) except ClientError: return {'exists': 'false'} content_length = head_response.get('ContentLength', 0) if content_length > 0: return {'exists': 'true'} return {'exists': 'false'}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
exists
API method returns a structure like{'exists': 'true'}
it should be{'exists': True}
.The text was updated successfully, but these errors were encountered: