Skip to content

Conversation

@ItielOlenick
Copy link

This PR fixes unnecessary headObject calls in the cp command when the progress bar is disabled. It ensures Client.stat (headObject when copying remote->local) is only called when the progress bar is explicitly enabled, reducing latency and costs for bulk operations.

Changes:

Added a conditional check to skip Client.stat unless the progress bar is active.

Only requests object size when necessary, improving performance and cost efficiency for cp operations.

Closes #792.

@ItielOlenick ItielOlenick requested a review from a team as a code owner February 12, 2025 08:47
@ItielOlenick ItielOlenick requested review from igungor and seruman and removed request for a team February 12, 2025 08:47
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.

[Bug] Unnecessary headObject calls on cp command when progress bar is disabled

1 participant