Skip to content

feat: S3 transfer manager improvements#3247

Open
yenfryherrerafeliz wants to merge 11 commits intoaws:masterfrom
yenfryherrerafeliz:s3_transfer_manager_improvements
Open

feat: S3 transfer manager improvements#3247
yenfryherrerafeliz wants to merge 11 commits intoaws:masterfrom
yenfryherrerafeliz:s3_transfer_manager_improvements

Conversation

@yenfryherrerafeliz
Copy link
Contributor

Description of changes:

  • Includes resumable capabilities to resume downloads and uploads.
  • Concurrent downloads to enhance download speed.
  • Directory Transfer Improvements.

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

@yenfryherrerafeliz yenfryherrerafeliz changed the title S3 transfer manager improvements feat: S3 transfer manager improvements Feb 24, 2026
$resumeFilePath,
$this->downloadRequestArgs,
$config,
$this->initialRequestResult,
Copy link
Member

Choose a reason for hiding this comment

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

I think these args are out of order based on the ResumableDownload constructor

* @param int $objectsDownloaded
* @param int $objectsFailed
* @param Throwable|null $reason
* @param array $reasons
Copy link
Member

Choose a reason for hiding this comment

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

bit of a mismatch here

*/
public static function computeObjectSizeFromContentRange(
string $contentRange
): int
Copy link
Member

Choose a reason for hiding this comment

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

does this return int or string?

*
* @return int
*/
public static function getRangeTo(string $range): int
Copy link
Member

Choose a reason for hiding this comment

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

same comment as above

*
* @return string|null
*/
public static function filterChecksum(array $parameters):? string
Copy link
Member

Choose a reason for hiding this comment

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

nit: no space after nullable for return types

int $transferredBytes,
int $totalBytes,
?array $response = null,
string $identifier,
Copy link
Member

Choose a reason for hiding this comment

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

extra spaces and closing brace is out of position

Copy link
Member

Choose a reason for hiding this comment

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

I think this has some redundant getters it inherits from AbstractResumableTransfer, same with ResumableUpload

Copy link
Member

Choose a reason for hiding this comment

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

Should also have a corresponding test class

Copy link
Member

Choose a reason for hiding this comment

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

should have a corresponding test class

Copy link
Member

Choose a reason for hiding this comment

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

should have a corresponding test class

Copy link
Member

Choose a reason for hiding this comment

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

should have a corresponding test class

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