-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug list size overload #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks of nice updates in here! See inline comments and some general comments here:
- There are a few places where you use errors.New instead of fmt.Errorf. See line 145 of move.go for example. Try to be consistent
- Sometimes your errors/return messages start with lower case letter and other times they start with a capital letter.
- Most of the time you use a colon followed by the error message, though sometimes you use a comma.
Note that I skimmed the test scripts, but did not test them since I am not sure how to do that. Also I do not totally understand the logic behind how the test names are numbered, at times they seem to be inconsistent, but I could just not get it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for those updates! I made a few small changes: 0c976c9 and one inline comment to consider as a part of your next PR. I also added or modified the following two issues for future updates:
@@ -27,6 +27,31 @@ type ListResult struct { | |||
ModifiedBy string `json:"modified_by"` | |||
} | |||
|
|||
// CheckAndAdjustPrefix checks if the prefix is an object and adjusts the prefix accordingly. | |||
// Returns the adjusted prefix, an error message (if any), and the HTTP status code. | |||
func CheckAndAdjustPrefix(s3Ctrl *S3Controller, bucket, prefix string) (string, string, int) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be more standard to return an error, instead of a errorMessage? Like (string, int, error)
GetListWithCallBack
for safer retrieval of object lists, reducing memory usage compared toGetList
. Resolves OptimizeGetList
Function for Large Dataset Handling #36