Skip to content

✨ core function to get a directory or file as tarball #9125

Closed

Description

@gjung56

What are you trying to do?

It would be nice to have a core function to get a tarball from a directory or a file

Methods api examples :
Directory.AsTarball()
File.AsTarball()

And eventually, the reverse functions, to get a directory from a tarball.

Why is this important to you?

We use a lot tarballs in our ci/cd pipelines and that make a lot of the same boilerplate to get what we need.

How are you currently working around this?

I use a basic alpine container, mount the source directory and exec a tar command then export the resulted file.

Activity

  1. jedevc commented on Jul 29, 2025

    @jedevc
    Contributor

    We should also support unpacking files/directories as part of this.

  2. realoriginal commented on Sep 30, 2025

    @realoriginal

    I'd love for this. I'm running into the issue described here #6355 and this would be an excellent workaround.

  3. locked and limited conversation to collaborators on Mar 24, 2026
  4. converted this issue into a discussion #12133 on Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions