Skip to content

Files getting truncated when the tar is created #12

@py-prash

Description

@py-prash

There is an issue with the module which causes larger files(>8MB or maybe depending on the memory of the server) to truncate. The issue seems to be the tell() command which returns the position of the IO object but isn't the actual buffer size. The module Tarfile uses the actual size of the buffer while trying to create the tar file. When I replace the tell() command with IOobject.getbuffer().nbytes the issues seems to have resolved. I am not sure if there is any better way of doing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions