Skip to content

Rounding of chunk_count in __put_file_chunked can be off by 1 #175

@dpickem

Description

@dpickem

In the function __put_file_chunked instead of

chunk_count = size / chunk_size

the line should read

chunk_count = math.ceil(size / chunk_size)

Otherwise the subsequent cast to int(chunk_count) on line 594 may discard the last chunk of a file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions