Edit

Share via


TarFile Class

Definition

Provides static methods for creating and extracting tar archives.

public ref class TarFile abstract sealed
public static class TarFile
type TarFile = class
Public Class TarFile
Inheritance
TarFile

Methods

CreateFromDirectory(String, Stream, Boolean)

Creates a tar stream that contains all the filesystem entries from the specified directory.

CreateFromDirectory(String, String, Boolean)

Creates a tar file that contains all the filesystem entries from the specified directory.

CreateFromDirectoryAsync(String, Stream, Boolean, CancellationToken)

Asynchronously creates a tar stream that contains all the filesystem entries from the specified directory.

CreateFromDirectoryAsync(String, String, Boolean, CancellationToken)

Asynchronously creates a tar archive from the contents of the specified directory, and outputs them into the specified path. Can optionally include the base directory as the prefix for the entry names.

ExtractToDirectory(Stream, String, Boolean)

Extracts the contents of a stream that represents a tar archive into the specified directory.

ExtractToDirectory(String, String, Boolean)

Extracts the contents of a tar file into the specified directory.

ExtractToDirectoryAsync(Stream, String, Boolean, CancellationToken)

Asynchronously extracts the contents of a stream that represents a tar archive into the specified directory.

ExtractToDirectoryAsync(String, String, Boolean, CancellationToken)

Asynchronously extracts the contents of a tar file into the specified directory.

Applies to