Επεξεργασία

Κοινή χρήση μέσω


PosixTarEntry Class

Definition

Defines the core behavior of a tar entry from an archive of a format that is based on the POSIX IEEE P1003.1 standard from 1988. This includes the formats Ustar (represented by the UstarTarEntry class), Pax (represented by the PaxTarEntry class), and Gnu (represented by the GnuTarEntry class).

public ref class PosixTarEntry abstract : System::Formats::Tar::TarEntry
public abstract class PosixTarEntry : System.Formats.Tar.TarEntry
type PosixTarEntry = class
    inherit TarEntry
Public MustInherit Class PosixTarEntry
Inherits TarEntry
Inheritance
PosixTarEntry
Derived

Remarks

Formats that implement the POSIX IEEE P1003.1 standard from 1988 support the following header fields: devmajor, devminor, gname, and uname.

Even though the Gnu format is not POSIX compatible, it implements and supports the Unix-specific fields that were defined in that POSIX standard.

Properties

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.

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.

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.

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.

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