378 references to TarEntryType
aspire (6)
Bundles\BundleService.cs (3)
269case TarEntryType.Directory: 273case TarEntryType.RegularFile: 288case TarEntryType.SymbolicLink:
Utils\ArchiveHelper.cs (3)
97case TarEntryType.Directory: 101case TarEntryType.RegularFile: 116case TarEntryType.SymbolicLink:
Microsoft.DotNet.SignTool (5)
src\ZipData.cs (5)
66.Where(static entry => entry.EntryType != TarEntryType.SymbolicLink && 67entry.EntryType != TarEntryType.Directory) 672if (tar.EntryType == TarEntryType.Directory || 673(skipSymlinks && tar.EntryType == TarEntryType.SymbolicLink)) 681if (tar.EntryType == TarEntryType.SymbolicLink)
System.Formats.Tar (367)
System\Formats\Tar\GnuTarEntry.cs (10)
27/// <para>When creating an instance using the <see cref="GnuTarEntry(TarEntryType, string)"/> constructor, only the following entry types are supported:</para> 29/// <item>In all platforms: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/>, <see cref="TarEntryType.RegularFile"/>.</item> 30/// <item>In Unix platforms only: <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> and <see cref="TarEntryType.Fifo"/>.</item> 37public GnuTarEntry(TarEntryType entryType, string entryName) 100internal override bool IsDataStreamSetterSupported() => EntryType is TarEntryType.RegularFile;
System\Formats\Tar\PaxGlobalExtendedAttributesTarEntry.cs (1)
26: base(TarEntryType.GlobalExtendedAttributes, nameof(PaxGlobalExtendedAttributesTarEntry), TarEntryFormat.Pax, isGea: true) // Name == name of type for lack of a better temporary name until the entry is written
System\Formats\Tar\PaxTarEntry.cs (20)
26/// <remarks><para>When creating an instance using the <see cref="PaxTarEntry(TarEntryType, string)"/> constructor, only the following entry types are supported:</para> 28/// <item>In all platforms: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/>, <see cref="TarEntryType.RegularFile"/>.</item> 29/// <item>In Unix platforms only: <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> and <see cref="TarEntryType.Fifo"/>.</item> 31/// <para>Use the <see cref="PaxTarEntry(TarEntryType, string, IEnumerable{KeyValuePair{string, string}})"/> constructor to include extended attributes when creating the entry.</para> 37public PaxTarEntry(TarEntryType entryType, string entryName) 49/// <remarks><para>When creating an instance using the <see cref="PaxTarEntry(TarEntryType, string, IEnumerable{KeyValuePair{string, string}})"/> constructor, only the following entry types are supported:</para> 51/// <item>In all platforms: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/>, <see cref="TarEntryType.RegularFile"/>.</item> 52/// <item>In Unix platforms only: <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> and <see cref="TarEntryType.Fifo"/>.</item> 66public PaxTarEntry(TarEntryType entryType, string entryName, IEnumerable<KeyValuePair<string, string>> extendedAttributes) 132internal override bool IsDataStreamSetterSupported() => EntryType == TarEntryType.RegularFile;
System\Formats\Tar\PosixTarEntry.cs (5)
22internal PosixTarEntry(TarEntryType entryType, string entryName, TarEntryFormat format, bool isGea) 59if (_header._typeFlag is not TarEntryType.BlockDevice and not TarEntryType.CharacterDevice) 86if (_header._typeFlag is not TarEntryType.BlockDevice and not TarEntryType.CharacterDevice)
System\Formats\Tar\TarEntry.cs (62)
37internal TarEntry(TarEntryType entryType, string entryName, TarEntryFormat format, bool isGea) 41Debug.Assert(!isGea || entryType is TarEntryType.GlobalExtendedAttributes); 60TarEntryType compatibleEntryType = TarHelpers.GetCorrectTypeFlagForFormat(format, other.EntryType); 77public TarEntryType EntryType => _header._typeFlag; 120/// <remarks>The entry type that commonly contains data is <see cref="TarEntryType.RegularFile"/> (or <see cref="TarEntryType.V7RegularFile"/> in the <see cref="TarEntryFormat.V7"/> format). Other uncommon entry types that can also contain data are: <see cref="TarEntryType.ContiguousFile"/>, <see cref="TarEntryType.DirectoryList"/>, <see cref="TarEntryType.MultiVolume"/> and <see cref="TarEntryType.SparseFile"/>.</remarks> 124/// When the <see cref="EntryType"/> indicates a <see cref="TarEntryType.SymbolicLink"/> or a <see cref="TarEntryType.HardLink"/>, this property returns the link target path of such link. 127/// <exception cref="InvalidOperationException">The entry type is not <see cref="TarEntryType.HardLink"/> or <see cref="TarEntryType.SymbolicLink"/>.</exception> 135if (_header._typeFlag is not TarEntryType.HardLink and not TarEntryType.SymbolicLink) 198/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 199/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para> 216if (EntryType is TarEntryType.SymbolicLink or TarEntryType.HardLink or TarEntryType.GlobalExtendedAttributes) 231/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 232/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 251if (EntryType is TarEntryType.SymbolicLink or TarEntryType.HardLink or TarEntryType.GlobalExtendedAttributes) 265/// <exception cref="InvalidOperationException">Setting a data section is not supported because the <see cref="EntryType"/> is not <see cref="TarEntryType.RegularFile"/> (or <see cref="TarEntryType.V7RegularFile"/> for an archive of <see cref="TarEntryFormat.V7"/> format).</exception> 324if (EntryType == TarEntryType.Directory) 347if (EntryType == TarEntryType.Directory) 377if (EntryType is TarEntryType.SymbolicLink) 392else if (EntryType is TarEntryType.HardLink) 427if (EntryType is TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile) 446if (EntryType is TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile) 459Debug.Assert(EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile)); 463case TarEntryType.Directory: 464case TarEntryType.DirectoryList: 480case TarEntryType.SymbolicLink: 486case TarEntryType.HardLink: 499case TarEntryType.BlockDevice: 503case TarEntryType.CharacterDevice: 507case TarEntryType.Fifo: 511case TarEntryType.ExtendedAttributes: 512case TarEntryType.GlobalExtendedAttributes: 513case TarEntryType.LongPath: 514case TarEntryType.LongLink: 518case TarEntryType.MultiVolume: 519case TarEntryType.RenamedOrSymlinked: 520case TarEntryType.SparseFile: 521case TarEntryType.TapeVolume:
System\Formats\Tar\TarEntry.Unix.cs (4)
16Debug.Assert(EntryType is TarEntryType.BlockDevice); 23Debug.Assert(EntryType is TarEntryType.CharacterDevice); 30Debug.Assert(EntryType is TarEntryType.Fifo); 37Debug.Assert(EntryType is TarEntryType.HardLink);
System\Formats\Tar\TarFile.cs (42)
268/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 269/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 288/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 289/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 330/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 331/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 352/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 353/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 396/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 397/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 415/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 416/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 459/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 460/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 480/// <remarks><para>Files of type <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> or <see cref="TarEntryType.Fifo"/> can only be extracted in Unix platforms.</para> 481/// <para>Elevation is required to extract a <see cref="TarEntryType.BlockDevice"/> or <see cref="TarEntryType.CharacterDevice"/> to disk.</para></remarks> 662if (entry.EntryType is not TarEntryType.GlobalExtendedAttributes) 710if (entry.EntryType is not TarEntryType.GlobalExtendedAttributes)
System\Formats\Tar\TarHardLinkMode.cs (1)
14/// occurrences are written as <see cref="TarEntryType.HardLink"/> entries.
System\Formats\Tar\TarHeader.cs (6)
65internal TarEntryType _typeFlag; 107internal TarHeader(TarEntryFormat format, string name = "", int mode = 0, DateTimeOffset mTime = default, TarEntryType typeFlag = TarEntryType.RegularFile) 121internal TarHeader(TarEntryFormat format, TarEntryType typeFlag, TarHeader other) 258Debug.Assert(_typeFlag is TarEntryType.SymbolicLink or TarEntryType.HardLink);
System\Formats\Tar\TarHeader.Read.cs (56)
133if (_typeFlag is TarEntryType.HardLink or TarEntryType.SymbolicLink && 159if (_typeFlag is TarEntryType.RegularFile or TarEntryType.V7RegularFile) 235case TarEntryType.ExtendedAttributes or TarEntryType.GlobalExtendedAttributes: 238case TarEntryType.LongLink or TarEntryType.LongPath: 241case TarEntryType.BlockDevice: 242case TarEntryType.CharacterDevice: 243case TarEntryType.Directory: 244case TarEntryType.Fifo: 245case TarEntryType.HardLink: 246case TarEntryType.SymbolicLink: 253case TarEntryType.RegularFile: 254case TarEntryType.V7RegularFile: // Treated as regular file 255case TarEntryType.ContiguousFile: // Treated as regular file 256case TarEntryType.DirectoryList: // Contains the list of filesystem entries in the data section 257case TarEntryType.MultiVolume: // Contains portion of a file 258case TarEntryType.RenamedOrSymlinked: // Might contain data 259case TarEntryType.SparseFile: // Contains portion of a file 260case TarEntryType.TapeVolume: // Might contain data 308case TarEntryType.ExtendedAttributes or TarEntryType.GlobalExtendedAttributes: 311case TarEntryType.LongLink or TarEntryType.LongPath: 314case TarEntryType.BlockDevice: 315case TarEntryType.CharacterDevice: 316case TarEntryType.Directory: 317case TarEntryType.Fifo: 318case TarEntryType.HardLink: 319case TarEntryType.SymbolicLink: 326case TarEntryType.RegularFile: 327case TarEntryType.V7RegularFile: // Treated as regular file 328case TarEntryType.ContiguousFile: // Treated as regular file 329case TarEntryType.DirectoryList: // Contains the list of filesystem entries in the data section 330case TarEntryType.MultiVolume: // Contains portion of a file 331case TarEntryType.RenamedOrSymlinked: // Might contain data 332case TarEntryType.SparseFile: // Contains portion of a file 333case TarEntryType.TapeVolume: // Might contain data 473typeFlag: (TarEntryType)buffer[FieldLocations.TypeFlag]) 486TarEntryType.ExtendedAttributes or 487TarEntryType.GlobalExtendedAttributes => TarEntryFormat.Pax, 489TarEntryType.DirectoryList or 490TarEntryType.LongLink or 491TarEntryType.LongPath or 492TarEntryType.MultiVolume or 493TarEntryType.RenamedOrSymlinked or 494TarEntryType.TapeVolume => TarEntryFormat.Gnu, 497TarEntryType.V7RegularFile => TarEntryFormat.V7, 499TarEntryType.SparseFile => throw new NotSupportedException(SR.Format(SR.TarEntryTypeNotSupported, header._typeFlag)), 503_ => (header._typeFlag == TarEntryType.RegularFile) ? TarEntryFormat.Ustar : TarEntryFormat.V7 626if (_typeFlag is TarEntryType.CharacterDevice or TarEntryType.BlockDevice) 800if (_typeFlag == TarEntryType.LongLink) 804else if (_typeFlag == TarEntryType.LongPath)
System\Formats\Tar\TarHeader.Write.cs (19)
175TarEntryType actualEntryType = TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.V7, _typeFlag); 185TarEntryType actualEntryType = TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.Ustar, _typeFlag); 217Debug.Assert(_typeFlag is TarEntryType.GlobalExtendedAttributes); 280Debug.Assert(_typeFlag is not TarEntryType.GlobalExtendedAttributes); 323Debug.Assert(_typeFlag is not TarEntryType.GlobalExtendedAttributes); 451return GetGnuLongMetadataHeader(dataStream, TarEntryType.LongLink); 457return GetGnuLongMetadataHeader(dataStream, TarEntryType.LongPath); 461private static TarHeader GetGnuLongMetadataHeader(MemoryStream dataStream, TarEntryType entryType) 463Debug.Assert(entryType is TarEntryType.LongPath or TarEntryType.LongLink); 521_typeFlag = isGea ? TarEntryType.GlobalExtendedAttributes : TarEntryType.ExtendedAttributes; 645private int WriteCommonFields(Span<byte> buffer, TarEntryType actualEntryType) 648Debug.Assert(!string.IsNullOrEmpty(_linkName) ^ (_typeFlag is not TarEntryType.SymbolicLink and not TarEntryType.HardLink)); 790if (_typeFlag is not TarEntryType.LongLink and not TarEntryType.LongPath) 1171return _typeFlag is TarEntryType.Directory or TarEntryType.DirectoryList ?
System\Formats\Tar\TarHelpers.cs (38)
48internal static int GetDefaultMode(TarEntryType type) 49=> type is TarEntryType.Directory or TarEntryType.DirectoryList ? (int)DefaultDirectoryMode : (int)DefaultFileMode; 198internal static TarEntryType GetRegularFileEntryTypeForFormat(TarEntryFormat format) => format is TarEntryFormat.V7 ? TarEntryType.V7RegularFile : TarEntryType.RegularFile; 203internal static TarEntryType GetCorrectTypeFlagForFormat(TarEntryFormat format, TarEntryType entryType) 207if (entryType is TarEntryType.RegularFile) 209return TarEntryType.V7RegularFile; 212else if (entryType is TarEntryType.V7RegularFile) 214return TarEntryType.RegularFile; 316internal static void ThrowIfEntryTypeNotSupported(TarEntryType entryType, TarEntryFormat archiveFormat, [CallerArgumentExpression(nameof(entryType))] string? paramName = null) 322TarEntryType.Directory or 323TarEntryType.HardLink or 324TarEntryType.V7RegularFile or 325TarEntryType.SymbolicLink) 333TarEntryType.BlockDevice or 334TarEntryType.CharacterDevice or 335TarEntryType.Directory or 336TarEntryType.Fifo or 337TarEntryType.HardLink or 338TarEntryType.RegularFile or 339TarEntryType.SymbolicLink) 347TarEntryType.BlockDevice or 348TarEntryType.CharacterDevice or 349TarEntryType.Directory or 350TarEntryType.Fifo or 351TarEntryType.HardLink or 352TarEntryType.RegularFile or 353TarEntryType.SymbolicLink) 365TarEntryType.BlockDevice or 366TarEntryType.CharacterDevice or 367TarEntryType.Directory or 368TarEntryType.Fifo or 369TarEntryType.HardLink or 370TarEntryType.RegularFile or 371TarEntryType.SymbolicLink)
System\Formats\Tar\TarReader.cs (41)
138TarEntryFormat.Pax => header._typeFlag is TarEntryType.GlobalExtendedAttributes ? 273TarEntryFormat.Pax => header._typeFlag is TarEntryType.GlobalExtendedAttributes ? 313if (header._typeFlag is TarEntryType.ExtendedAttributes) 322else if (header._typeFlag is TarEntryType.LongLink or TarEntryType.LongPath) 354if (header._typeFlag is TarEntryType.ExtendedAttributes) 364else if (header._typeFlag is TarEntryType.LongLink or TarEntryType.LongPath) 391if (actualHeader._typeFlag is TarEntryType.GlobalExtendedAttributes or 392TarEntryType.ExtendedAttributes or 393TarEntryType.LongLink or 394TarEntryType.LongPath) 396throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader._typeFlag, TarEntryType.ExtendedAttributes)); 423if (actualHeader._typeFlag is TarEntryType.GlobalExtendedAttributes or 424TarEntryType.ExtendedAttributes or 425TarEntryType.LongLink or 426TarEntryType.LongPath) 428throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader._typeFlag, TarEntryType.ExtendedAttributes)); 432if (actualHeader._typeFlag is TarEntryType.ExtendedAttributes) 434throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, TarEntryType.ExtendedAttributes, TarEntryType.ExtendedAttributes)); 467if ((header._typeFlag is TarEntryType.LongLink && secondHeader._typeFlag is TarEntryType.LongPath) || 468(header._typeFlag is TarEntryType.LongPath && secondHeader._typeFlag is TarEntryType.LongLink)) 479if (thirdHeader._typeFlag is TarEntryType.LongLink or TarEntryType.LongPath) 484if (header._typeFlag is TarEntryType.LongLink) 492else if (header._typeFlag is TarEntryType.LongPath) 505if (header._typeFlag is TarEntryType.LongLink) 510else if (header._typeFlag is TarEntryType.LongPath) 544if ((header._typeFlag is TarEntryType.LongLink && secondHeader._typeFlag is TarEntryType.LongPath) || 545(header._typeFlag is TarEntryType.LongPath && secondHeader._typeFlag is TarEntryType.LongLink)) 555if (thirdHeader._typeFlag is TarEntryType.LongLink or TarEntryType.LongPath) 560if (header._typeFlag is TarEntryType.LongLink) 568else if (header._typeFlag is TarEntryType.LongPath) 581if (header._typeFlag is TarEntryType.LongLink) 586else if (header._typeFlag is TarEntryType.LongPath)
System\Formats\Tar\TarWriter.cs (31)
230/// <item><see cref="TarEntryType.Directory"/></item> 231/// <item><see cref="TarEntryType.HardLink"/></item> 232/// <item><see cref="TarEntryType.SymbolicLink"/></item> 233/// <item><see cref="TarEntryType.V7RegularFile"/></item> 239/// <item><see cref="TarEntryType.BlockDevice"/></item> 240/// <item><see cref="TarEntryType.CharacterDevice"/></item> 241/// <item><see cref="TarEntryType.Directory"/></item> 242/// <item><see cref="TarEntryType.Fifo"/></item> 243/// <item><see cref="TarEntryType.HardLink"/></item> 244/// <item><see cref="TarEntryType.RegularFile"/></item> 245/// <item><see cref="TarEntryType.SymbolicLink"/></item> 250/// <exception cref="ArgumentException">The entry type is <see cref="TarEntryType.HardLink"/> or <see cref="TarEntryType.SymbolicLink"/> and the <see cref="TarEntry.LinkName"/> is <see langword="null"/> or empty.</exception> 278/// <item><see cref="TarEntryType.Directory"/></item> 279/// <item><see cref="TarEntryType.HardLink"/></item> 280/// <item><see cref="TarEntryType.SymbolicLink"/></item> 281/// <item><see cref="TarEntryType.V7RegularFile"/></item> 287/// <item><see cref="TarEntryType.BlockDevice"/></item> 288/// <item><see cref="TarEntryType.CharacterDevice"/></item> 289/// <item><see cref="TarEntryType.Directory"/></item> 290/// <item><see cref="TarEntryType.Fifo"/></item> 291/// <item><see cref="TarEntryType.HardLink"/></item> 292/// <item><see cref="TarEntryType.RegularFile"/></item> 293/// <item><see cref="TarEntryType.SymbolicLink"/></item> 298/// <exception cref="ArgumentException">The entry type is <see cref="TarEntryType.HardLink"/> or <see cref="TarEntryType.SymbolicLink"/> and the <see cref="TarEntry.LinkName"/> is <see langword="null"/> or empty.</exception> 333if (entry._header._typeFlag is TarEntryType.GlobalExtendedAttributes) 368TarEntryFormat.Pax when entry._header._typeFlag is TarEntryType.GlobalExtendedAttributes => entry._header.WriteAsPaxGlobalExtendedAttributesAsync(_archiveStream, buffer, _nextGlobalExtendedAttributesEntryNumber++, cancellationToken), 425private static void ValidateEntryLinkName(TarEntryType entryType, string? linkName) 427if (entryType is TarEntryType.HardLink or TarEntryType.SymbolicLink)
System\Formats\Tar\TarWriter.Unix.cs (14)
43TarEntryType entryType; 46entryType = TarEntryType.HardLink; 53Interop.Sys.FileTypes.S_IFBLK => TarEntryType.BlockDevice, 54Interop.Sys.FileTypes.S_IFCHR => TarEntryType.CharacterDevice, 55Interop.Sys.FileTypes.S_IFIFO => TarEntryType.Fifo, 56Interop.Sys.FileTypes.S_IFLNK => TarEntryType.SymbolicLink, 58Interop.Sys.FileTypes.S_IFDIR => TarEntryType.Directory, 63FileSystemInfo info = entryType is TarEntryType.Directory ? new DirectoryInfo(fullPath) : new FileInfo(fullPath); 74if (entryType is TarEntryType.BlockDevice or TarEntryType.CharacterDevice) 117if (entry.EntryType == TarEntryType.SymbolicLink) 122if (entry.EntryType == TarEntryType.HardLink) 128if (entry.EntryType is TarEntryType.RegularFile or TarEntryType.V7RegularFile)
System\Formats\Tar\UstarTarEntry.cs (10)
22/// <remarks>When creating an instance using the <see cref="UstarTarEntry(TarEntryType, string)"/> constructor, only the following entry types are supported: 24/// <item>In all platforms: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/>, <see cref="TarEntryType.RegularFile"/>.</item> 25/// <item>In Unix platforms only: <see cref="TarEntryType.BlockDevice"/>, <see cref="TarEntryType.CharacterDevice"/> and <see cref="TarEntryType.Fifo"/>.</item> 32public UstarTarEntry(TarEntryType entryType, string entryName) 58internal override bool IsDataStreamSetterSupported() => EntryType == TarEntryType.RegularFile;
System\Formats\Tar\V7TarEntry.cs (7)
22/// <remarks>When creating an instance using the <see cref="V7TarEntry(TarEntryType, string)"/> constructor, only the following entry types are supported: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/> and <see cref="TarEntryType.V7RegularFile"/>.</remarks> 27public V7TarEntry(TarEntryType entryType, string entryName) 44internal override bool IsDataStreamSetterSupported() => EntryType == TarEntryType.V7RegularFile;