GnuTarEntry Class

Definition

Represents a tar entry in the GNU format.

public ref class GnuTarEntry sealed : System::Formats::Tar::PosixTarEntry
public sealed class GnuTarEntry : System.Formats.Tar.PosixTarEntry
type GnuTarEntry = class
    inherit PosixTarEntry
Public NotInheritable Class GnuTarEntry
Inherits PosixTarEntry
Inheritance

Remarks

Even though the Gnu format is not POSIX compatible, it implements and supports the Unix-specific fields that were defined in the POSIX IEEE P1003.1 standard from 1988: devmajor, devminor, gname, and uname.

Constructors

GnuTarEntry(TarEntry)

Initializes a new GnuTarEntry instance by converting the specified other entry into the GNU format.

GnuTarEntry(TarEntryType, String)

Initializes a new GnuTarEntry instance with the specified entry type and entry name.

Properties

AccessTime

A timestamp that represents the last time the file represented by this entry was accessed.

ChangeTime

A timestamp that represents the last time the metadata of the file represented by this entry was changed.

Checksum

The checksum of all the fields in this entry. The value is non-zero either when the entry is read from an existing archive, or after the entry is written to a new archive.

(Inherited from TarEntry)
DataOffset

Gets the starting position of the data stream respective to the archive stream.

(Inherited from TarEntry)
DataStream

Gets or sets the data section of this entry. If the EntryType does not support containing data, then returns null.

(Inherited from TarEntry)
DeviceMajor

Gets or sets the device's major number. When the current entry represents a character device or a block device, the major number identifies the driver associated with the device.

(Inherited from PosixTarEntry)
DeviceMinor

Gets or sets the device's minor number. When the current entry represents a character device or a block device, the minor number is used by the driver to distinguish individual devices it controls.

(Inherited from PosixTarEntry)
EntryType

Gets the type of filesystem object represented by this entry.

(Inherited from TarEntry)
Format

The format of the entry.

(Inherited from TarEntry)
Gid

Gets or sets the ID of the group that owns the file represented by this entry.

(Inherited from TarEntry)
GroupName

Gets or sets the name of the group that owns this entry.

(Inherited from PosixTarEntry)
Length

When the EntryType indicates an entry that can contain data, gets the length in bytes of such data.

(Inherited from TarEntry)
LinkName

When the EntryType indicates a SymbolicLink or a HardLink, gets or sets the link target path of the link.

(Inherited from TarEntry)
Mode

Gets or sets the Unix file permissions of the file represented by this entry.

(Inherited from TarEntry)
ModificationTime

Gets or sets the last time the contents of the file represented by this entry were modified.

(Inherited from TarEntry)
Name

Gets or sets the name of the entry, which includes the relative path and the filename.

(Inherited from TarEntry)
Uid

Gets or sets the ID of the user that owns the file represented by this entry.

(Inherited from TarEntry)
UserName

Gets or sets the name of the user that owns this entry.

(Inherited from PosixTarEntry)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExtractToFile(String, Boolean)

Extracts the current file or directory to the filesystem. Symbolic links and hard links are not extracted.

(Inherited from TarEntry)
ExtractToFileAsync(String, Boolean, CancellationToken)

Asynchronously extracts the current entry to the filesystem.

(Inherited from TarEntry)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current entry.

(Inherited from TarEntry)

Applies to