Skip to content
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

fix(untar): Use shutil, direct path for single tar #8

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

GMishx
Copy link
Member

@GMishx GMishx commented Jul 14, 2021

  • Use shutil.copyfileobj to copy buffers instead of doing it manually.
    • Good thing is that it is done in a chunked format by shutil, so no issue processing large files.
  • In case of single tar, pass the file path directly to tar.

- Use shutil.copyfileobj to copy buffers instead of doing it manually.
- In case of single tar, pass the file path directly to tar.

Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>
Copy link
Contributor

@ag4ums ag4ums left a comment

Choose a reason for hiding this comment

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

changes looks good

@ag4ums ag4ums merged commit 4d67939 into master Jul 22, 2021
@ag4ums ag4ums deleted the fix/fs/untar-single-files branch July 22, 2021 06:57
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