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

refactor(S3BasicFileAttributes): Extract and reuse getObjectMetadata method #277

Merged
merged 21 commits into from
Nov 7, 2023

Conversation

guicamest
Copy link
Contributor

Description of changes:

A new getObjectMetadata method has been extracted from S3BasicFileAttributes in order to reuse it in lastModifiedTime(), size(), and fileKey(). Unit tests for the class have also been added for the cases when the path is a regular file or a directory.

Previous coverage:
Screenshot 2023-11-07 110946

Current coverage:
Screenshot 2023-11-07 110053

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…e should return the Instant from the head response
Copy link
Contributor

@markjschreiber markjschreiber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The additional tests are much appreciated.

@markjschreiber markjschreiber merged commit f369d7b into awslabs:main Nov 7, 2023
1 check passed
@guicamest guicamest deleted the attributesExtractHeadMethod branch November 7, 2023 17:35
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

Successfully merging this pull request may close these issues.

2 participants