TarContainer

public class TarContainer: Container

Provides open function for TAR containers.

  • Processes TAR container and returns an array of ContainerEntry (which are actually TarEntry).

    Important

    The order of entries is defined by TAR container and, particularly, by the creator of a given TAR container. It is likely that directories will be encountered earlier than files stored in those directories, but one SHOULD NOT rely on any particular order.

    Throws

    TarError, which may indicate that either container is damaged or it might not be TAR container at all.

    Declaration

    Swift

    public static func open(container data: Data) throws -> [ContainerEntry]

    Parameters

    container

    TAR container’s data.

    Return Value

    Array of TarEntry as an array of ContainerEntry.