GnuTarEntry Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GnuTarEntry(TarEntry) |
Initializes a new GnuTarEntry instance by converting the specified |
| GnuTarEntry(TarEntryType, String) |
Initializes a new GnuTarEntry instance with the specified entry type and entry name. |
GnuTarEntry(TarEntry)
- Source:
- GnuTarEntry.cs
- Source:
- GnuTarEntry.cs
- Source:
- GnuTarEntry.cs
- Source:
- GnuTarEntry.cs
Initializes a new GnuTarEntry instance by converting the specified other entry into the GNU format.
public:
GnuTarEntry(System::Formats::Tar::TarEntry ^ other);
public GnuTarEntry(System.Formats.Tar.TarEntry other);
new System.Formats.Tar.GnuTarEntry : System.Formats.Tar.TarEntry -> System.Formats.Tar.GnuTarEntry
Public Sub New (other As TarEntry)
Parameters
Exceptions
other is a PaxGlobalExtendedAttributesTarEntry instance.
-or-
The entry type of other is not supported in the GNU format.
Remarks
When creating an instance of GnuTarEntry using this constructor, if other is Gnu or Pax, then the AccessTime and ChangeTime properties are set to the same values set in other. But if other is of any other format, then AccessTime and ChangeTime are set to default, which in the entry header atime and ctime fields is written as null bytes. This ensures compatibility with other tools that are unable to read the atime and ctime in Gnu entries, as these two fields are not POSIX compatible because other formats expect the prefix field in the same header location where Gnu writes atime and ctime.
Applies to
GnuTarEntry(TarEntryType, String)
- Source:
- GnuTarEntry.cs
- Source:
- GnuTarEntry.cs
- Source:
- GnuTarEntry.cs
- Source:
- GnuTarEntry.cs
Initializes a new GnuTarEntry instance with the specified entry type and entry name.
public:
GnuTarEntry(System::Formats::Tar::TarEntryType entryType, System::String ^ entryName);
public GnuTarEntry(System.Formats.Tar.TarEntryType entryType, string entryName);
new System.Formats.Tar.GnuTarEntry : System.Formats.Tar.TarEntryType * string -> System.Formats.Tar.GnuTarEntry
Public Sub New (entryType As TarEntryType, entryName As String)
Parameters
- entryType
- TarEntryType
The type of the entry.
- entryName
- String
A string with the path and file name of this entry.
Exceptions
entryName is null.
entryName is empty.
-or-
The entry type is not supported for creating an entry in the GNU format.
Remarks
When creating an instance using the GnuTarEntry(TarEntryType, String) constructor, only the following entry types are supported: Directory, HardLink, SymbolicLink, RegularFile, BlockDevice, CharacterDevice, and Fifo.