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

Add support for copying directories from containers #9476

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Oct 29, 2024

  1. Add ContainerState#copyArchiveFromContainer as an alternative to copy…

    …FileFromContainer
    
    While the copyFileFromContainer allows consuming a generic InputStream of the Archives' first entry, it does not support directories.
    The new copyArchiveFromContainer method allows users to process the raw TAR archive InputStream.
    Jozott00 committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    7260695 View commit details
    Browse the repository at this point in the history
  2. Add method to copy files and directories from container to host

    Introduces a new `copyPathFromContainer` method in `ContainerState.java` that enables copying files or directories from a Docker container to the host. This method handles both file and directory copying, ensuring proper directory structure on the host. It also includes error handling for various states such as existing files conflicting with directories.
    Jozott00 committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    ea17c1c View commit details
    Browse the repository at this point in the history
  3. Add tests for copyPathFromContainer method

    These tests cover various scenarios such as copying single files, nested directories, and handling conflicts and errors.
    Jozott00 committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    9367f07 View commit details
    Browse the repository at this point in the history