342 references to TarEntryType
Microsoft.DotNet.SignTool (2)
src\ZipData.cs (2)
645
if (tar.EntryType ==
TarEntryType
.Directory ||
646
(skipSymlinks && tar.EntryType ==
TarEntryType
.SymbolicLink))
System.Formats.Tar (340)
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>
37
public GnuTarEntry(
TarEntryType
entryType, string entryName)
100
internal 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 (21)
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>
37
public PaxTarEntry(
TarEntryType
entryType, string entryName)
49
/// <remarks>When creating an instance using the <see cref="PaxTarEntry(
TarEntryType
, string)"/> constructor, only the following entry types are supported:
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>
65
public PaxTarEntry(
TarEntryType
entryType, string entryName, IEnumerable<KeyValuePair<string, string>> extendedAttributes)
111
/// <remarks>The extended attributes are specified when constructing an entry and updated with additional attributes when the entry is written. Use <see cref="PaxTarEntry(
TarEntryType
, string, IEnumerable{KeyValuePair{string, string}})"/> to append custom extended attributes.
126
internal override bool IsDataStreamSetterSupported() => EntryType ==
TarEntryType
.RegularFile;
System\Formats\Tar\PosixTarEntry.cs (5)
22
internal PosixTarEntry(
TarEntryType
entryType, string entryName, TarEntryFormat format, bool isGea)
59
if (_header._typeFlag is not
TarEntryType
.BlockDevice and not
TarEntryType
.CharacterDevice)
85
if (_header._typeFlag is not
TarEntryType
.BlockDevice and not
TarEntryType
.CharacterDevice)
System\Formats\Tar\TarEntry.cs (62)
37
internal TarEntry(
TarEntryType
entryType, string entryName, TarEntryFormat format, bool isGea)
41
Debug.Assert(!isGea || entryType is
TarEntryType
.GlobalExtendedAttributes);
60
TarEntryType
compatibleEntryType = TarHelpers.GetCorrectTypeFlagForFormat(format, other.EntryType);
77
public
TarEntryType
EntryType => _header._typeFlag;
115
/// <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>
119
/// 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.
121
/// <exception cref="InvalidOperationException">The entry type is not <see cref="
TarEntryType
.HardLink"/> or <see cref="
TarEntryType
.SymbolicLink"/>.</exception>
129
if (_header._typeFlag is not
TarEntryType
.HardLink and not
TarEntryType
.SymbolicLink)
185
/// <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>
186
/// <para>Elevation is required to extract a <see cref="
TarEntryType
.BlockDevice"/> or <see cref="
TarEntryType
.CharacterDevice"/> to disk.</para>
203
if (EntryType is
TarEntryType
.SymbolicLink or
TarEntryType
.HardLink or
TarEntryType
.GlobalExtendedAttributes)
217
/// <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>
218
/// <para>Elevation is required to extract a <see cref="
TarEntryType
.BlockDevice"/> or <see cref="
TarEntryType
.CharacterDevice"/> to disk.</para></remarks>
237
if (EntryType is
TarEntryType
.SymbolicLink or
TarEntryType
.HardLink or
TarEntryType
.GlobalExtendedAttributes)
250
/// <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>
307
if (EntryType ==
TarEntryType
.Directory)
330
if (EntryType ==
TarEntryType
.Directory)
360
if (EntryType is
TarEntryType
.SymbolicLink)
375
else if (EntryType is
TarEntryType
.HardLink)
410
if (EntryType is
TarEntryType
.RegularFile or
TarEntryType
.V7RegularFile or
TarEntryType
.ContiguousFile)
429
if (EntryType is
TarEntryType
.RegularFile or
TarEntryType
.V7RegularFile or
TarEntryType
.ContiguousFile)
442
Debug.Assert(EntryType is not (
TarEntryType
.RegularFile or
TarEntryType
.V7RegularFile or
TarEntryType
.ContiguousFile));
446
case
TarEntryType
.Directory:
447
case
TarEntryType
.DirectoryList:
463
case
TarEntryType
.SymbolicLink:
469
case
TarEntryType
.HardLink:
474
case
TarEntryType
.BlockDevice:
478
case
TarEntryType
.CharacterDevice:
482
case
TarEntryType
.Fifo:
486
case
TarEntryType
.ExtendedAttributes:
487
case
TarEntryType
.GlobalExtendedAttributes:
488
case
TarEntryType
.LongPath:
489
case
TarEntryType
.LongLink:
493
case
TarEntryType
.MultiVolume:
494
case
TarEntryType
.RenamedOrSymlinked:
495
case
TarEntryType
.SparseFile:
496
case
TarEntryType
.TapeVolume:
System\Formats\Tar\TarEntry.Unix.cs (4)
16
Debug.Assert(EntryType is
TarEntryType
.BlockDevice);
23
Debug.Assert(EntryType is
TarEntryType
.CharacterDevice);
30
Debug.Assert(EntryType is
TarEntryType
.Fifo);
37
Debug.Assert(EntryType is
TarEntryType
.HardLink);
System\Formats\Tar\TarFile.cs (22)
160
/// <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>
161
/// <para>Elevation is required to extract a <see cref="
TarEntryType
.BlockDevice"/> or <see cref="
TarEntryType
.CharacterDevice"/> to disk.</para></remarks>
201
/// <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>
202
/// <para>Elevation is required to extract a <see cref="
TarEntryType
.BlockDevice"/> or <see cref="
TarEntryType
.CharacterDevice"/> to disk.</para></remarks>
244
/// <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>
245
/// <para>Elevation is required to extract a <see cref="
TarEntryType
.BlockDevice"/> or <see cref="
TarEntryType
.CharacterDevice"/> to disk.</para></remarks>
287
/// <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>
288
/// <para>Elevation is required to extract a <see cref="
TarEntryType
.BlockDevice"/> or <see cref="
TarEntryType
.CharacterDevice"/> to disk.</para></remarks>
465
if (entry.EntryType is not
TarEntryType
.GlobalExtendedAttributes)
510
if (entry.EntryType is not
TarEntryType
.GlobalExtendedAttributes)
System\Formats\Tar\TarHeader.cs (4)
59
internal
TarEntryType
_typeFlag;
86
internal TarHeader(TarEntryFormat format, string name = "", int mode = 0, DateTimeOffset mTime = default,
TarEntryType
typeFlag =
TarEntryType
.RegularFile)
100
internal TarHeader(TarEntryFormat format,
TarEntryType
typeFlag, TarHeader other)
System\Formats\Tar\TarHeader.Read.cs (52)
190
case
TarEntryType
.ExtendedAttributes or
TarEntryType
.GlobalExtendedAttributes:
193
case
TarEntryType
.LongLink or
TarEntryType
.LongPath:
196
case
TarEntryType
.BlockDevice:
197
case
TarEntryType
.CharacterDevice:
198
case
TarEntryType
.Directory:
199
case
TarEntryType
.Fifo:
200
case
TarEntryType
.HardLink:
201
case
TarEntryType
.SymbolicLink:
208
case
TarEntryType
.RegularFile:
209
case
TarEntryType
.V7RegularFile: // Treated as regular file
210
case
TarEntryType
.ContiguousFile: // Treated as regular file
211
case
TarEntryType
.DirectoryList: // Contains the list of filesystem entries in the data section
212
case
TarEntryType
.MultiVolume: // Contains portion of a file
213
case
TarEntryType
.RenamedOrSymlinked: // Might contain data
214
case
TarEntryType
.SparseFile: // Contains portion of a file
215
case
TarEntryType
.TapeVolume: // Might contain data
252
case
TarEntryType
.ExtendedAttributes or
TarEntryType
.GlobalExtendedAttributes:
255
case
TarEntryType
.LongLink or
TarEntryType
.LongPath:
258
case
TarEntryType
.BlockDevice:
259
case
TarEntryType
.CharacterDevice:
260
case
TarEntryType
.Directory:
261
case
TarEntryType
.Fifo:
262
case
TarEntryType
.HardLink:
263
case
TarEntryType
.SymbolicLink:
270
case
TarEntryType
.RegularFile:
271
case
TarEntryType
.V7RegularFile: // Treated as regular file
272
case
TarEntryType
.ContiguousFile: // Treated as regular file
273
case
TarEntryType
.DirectoryList: // Contains the list of filesystem entries in the data section
274
case
TarEntryType
.MultiVolume: // Contains portion of a file
275
case
TarEntryType
.RenamedOrSymlinked: // Might contain data
276
case
TarEntryType
.SparseFile: // Contains portion of a file
277
case
TarEntryType
.TapeVolume: // Might contain data
391
typeFlag: (
TarEntryType
)buffer[FieldLocations.TypeFlag])
404
TarEntryType
.ExtendedAttributes or
405
TarEntryType
.GlobalExtendedAttributes => TarEntryFormat.Pax,
407
TarEntryType
.DirectoryList or
408
TarEntryType
.LongLink or
409
TarEntryType
.LongPath or
410
TarEntryType
.MultiVolume or
411
TarEntryType
.RenamedOrSymlinked or
412
TarEntryType
.TapeVolume => TarEntryFormat.Gnu,
415
TarEntryType
.V7RegularFile => TarEntryFormat.V7,
417
TarEntryType
.SparseFile => throw new NotSupportedException(SR.Format(SR.TarEntryTypeNotSupported, header._typeFlag)),
421
_ => (header._typeFlag ==
TarEntryType
.RegularFile) ? TarEntryFormat.Ustar : TarEntryFormat.V7
526
if (_typeFlag is
TarEntryType
.CharacterDevice or
TarEntryType
.BlockDevice)
700
if (_typeFlag ==
TarEntryType
.LongLink)
704
else if (_typeFlag ==
TarEntryType
.LongPath)
System\Formats\Tar\TarHeader.Write.cs (21)
174
TarEntryType
actualEntryType = TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.V7, _typeFlag);
184
TarEntryType
actualEntryType = TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.Ustar, _typeFlag);
216
Debug.Assert(_typeFlag is
TarEntryType
.GlobalExtendedAttributes);
279
Debug.Assert(_typeFlag is not
TarEntryType
.GlobalExtendedAttributes);
322
Debug.Assert(_typeFlag is not
TarEntryType
.GlobalExtendedAttributes);
452
return GetGnuLongMetadataHeader(dataStream,
TarEntryType
.LongLink);
458
return GetGnuLongMetadataHeader(dataStream,
TarEntryType
.LongPath);
462
private static TarHeader GetGnuLongMetadataHeader(MemoryStream dataStream,
TarEntryType
entryType)
464
Debug.Assert(entryType is
TarEntryType
.LongPath or
TarEntryType
.LongLink);
522
_typeFlag = isGea ?
TarEntryType
.GlobalExtendedAttributes :
TarEntryType
.ExtendedAttributes;
646
private int WriteCommonFields(Span<byte> buffer,
TarEntryType
actualEntryType)
649
Debug.Assert(!string.IsNullOrEmpty(_linkName) ^ (_typeFlag is not
TarEntryType
.SymbolicLink and not
TarEntryType
.HardLink));
791
if (_typeFlag is not
TarEntryType
.LongLink and not
TarEntryType
.LongPath)
954
Debug.Assert(_typeFlag is
TarEntryType
.SymbolicLink or
TarEntryType
.HardLink);
1201
return _typeFlag is
TarEntryType
.Directory or
TarEntryType
.DirectoryList ?
System\Formats\Tar\TarHelpers.cs (35)
48
internal static int GetDefaultMode(
TarEntryType
type)
49
=> type is
TarEntryType
.Directory or
TarEntryType
.DirectoryList ? (int)DefaultDirectoryMode : (int)DefaultFileMode;
200
internal static
TarEntryType
GetCorrectTypeFlagForFormat(TarEntryFormat format,
TarEntryType
entryType)
204
if (entryType is
TarEntryType
.RegularFile)
206
return
TarEntryType
.V7RegularFile;
209
else if (entryType is
TarEntryType
.V7RegularFile)
211
return
TarEntryType
.RegularFile;
313
internal static void ThrowIfEntryTypeNotSupported(
TarEntryType
entryType, TarEntryFormat archiveFormat, [CallerArgumentExpression(nameof(entryType))] string? paramName = null)
319
TarEntryType
.Directory or
320
TarEntryType
.HardLink or
321
TarEntryType
.V7RegularFile or
322
TarEntryType
.SymbolicLink)
330
TarEntryType
.BlockDevice or
331
TarEntryType
.CharacterDevice or
332
TarEntryType
.Directory or
333
TarEntryType
.Fifo or
334
TarEntryType
.HardLink or
335
TarEntryType
.RegularFile or
336
TarEntryType
.SymbolicLink)
344
TarEntryType
.BlockDevice or
345
TarEntryType
.CharacterDevice or
346
TarEntryType
.Directory or
347
TarEntryType
.Fifo or
348
TarEntryType
.HardLink or
349
TarEntryType
.RegularFile or
350
TarEntryType
.SymbolicLink)
362
TarEntryType
.BlockDevice or
363
TarEntryType
.CharacterDevice or
364
TarEntryType
.Directory or
365
TarEntryType
.Fifo or
366
TarEntryType
.HardLink or
367
TarEntryType
.RegularFile or
368
TarEntryType
.SymbolicLink)
System\Formats\Tar\TarReader.cs (41)
138
TarEntryFormat.Pax => header._typeFlag is
TarEntryType
.GlobalExtendedAttributes ?
273
TarEntryFormat.Pax => header._typeFlag is
TarEntryType
.GlobalExtendedAttributes ?
313
if (header._typeFlag is
TarEntryType
.ExtendedAttributes)
322
else if (header._typeFlag is
TarEntryType
.LongLink or
TarEntryType
.LongPath)
354
if (header._typeFlag is
TarEntryType
.ExtendedAttributes)
364
else if (header._typeFlag is
TarEntryType
.LongLink or
TarEntryType
.LongPath)
391
if (actualHeader._typeFlag is
TarEntryType
.GlobalExtendedAttributes or
392
TarEntryType
.ExtendedAttributes or
393
TarEntryType
.LongLink or
394
TarEntryType
.LongPath)
396
throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader._typeFlag,
TarEntryType
.ExtendedAttributes));
423
if (actualHeader._typeFlag is
TarEntryType
.GlobalExtendedAttributes or
424
TarEntryType
.ExtendedAttributes or
425
TarEntryType
.LongLink or
426
TarEntryType
.LongPath)
428
throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader._typeFlag,
TarEntryType
.ExtendedAttributes));
432
if (actualHeader._typeFlag is
TarEntryType
.ExtendedAttributes)
434
throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry,
TarEntryType
.ExtendedAttributes,
TarEntryType
.ExtendedAttributes));
467
if ((header._typeFlag is
TarEntryType
.LongLink && secondHeader._typeFlag is
TarEntryType
.LongPath) ||
468
(header._typeFlag is
TarEntryType
.LongPath && secondHeader._typeFlag is
TarEntryType
.LongLink))
479
if (thirdHeader._typeFlag is
TarEntryType
.LongLink or
TarEntryType
.LongPath)
484
if (header._typeFlag is
TarEntryType
.LongLink)
492
else if (header._typeFlag is
TarEntryType
.LongPath)
505
if (header._typeFlag is
TarEntryType
.LongLink)
510
else if (header._typeFlag is
TarEntryType
.LongPath)
544
if ((header._typeFlag is
TarEntryType
.LongLink && secondHeader._typeFlag is
TarEntryType
.LongPath) ||
545
(header._typeFlag is
TarEntryType
.LongPath && secondHeader._typeFlag is
TarEntryType
.LongLink))
555
if (thirdHeader._typeFlag is
TarEntryType
.LongLink or
TarEntryType
.LongPath)
560
if (header._typeFlag is
TarEntryType
.LongLink)
568
else if (header._typeFlag is
TarEntryType
.LongPath)
581
if (header._typeFlag is
TarEntryType
.LongLink)
586
else if (header._typeFlag is
TarEntryType
.LongPath)
System\Formats\Tar\TarWriter.cs (31)
207
/// <item><see cref="
TarEntryType
.Directory"/></item>
208
/// <item><see cref="
TarEntryType
.HardLink"/></item>
209
/// <item><see cref="
TarEntryType
.SymbolicLink"/></item>
210
/// <item><see cref="
TarEntryType
.V7RegularFile"/></item>
216
/// <item><see cref="
TarEntryType
.BlockDevice"/></item>
217
/// <item><see cref="
TarEntryType
.CharacterDevice"/></item>
218
/// <item><see cref="
TarEntryType
.Directory"/></item>
219
/// <item><see cref="
TarEntryType
.Fifo"/></item>
220
/// <item><see cref="
TarEntryType
.HardLink"/></item>
221
/// <item><see cref="
TarEntryType
.RegularFile"/></item>
222
/// <item><see cref="
TarEntryType
.SymbolicLink"/></item>
227
/// <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>
255
/// <item><see cref="
TarEntryType
.Directory"/></item>
256
/// <item><see cref="
TarEntryType
.HardLink"/></item>
257
/// <item><see cref="
TarEntryType
.SymbolicLink"/></item>
258
/// <item><see cref="
TarEntryType
.V7RegularFile"/></item>
264
/// <item><see cref="
TarEntryType
.BlockDevice"/></item>
265
/// <item><see cref="
TarEntryType
.CharacterDevice"/></item>
266
/// <item><see cref="
TarEntryType
.Directory"/></item>
267
/// <item><see cref="
TarEntryType
.Fifo"/></item>
268
/// <item><see cref="
TarEntryType
.HardLink"/></item>
269
/// <item><see cref="
TarEntryType
.RegularFile"/></item>
270
/// <item><see cref="
TarEntryType
.SymbolicLink"/></item>
275
/// <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>
310
if (entry._header._typeFlag is
TarEntryType
.GlobalExtendedAttributes)
345
TarEntryFormat.Pax when entry._header._typeFlag is
TarEntryType
.GlobalExtendedAttributes => entry._header.WriteAsPaxGlobalExtendedAttributesAsync(_archiveStream, buffer, _nextGlobalExtendedAttributesEntryNumber++, cancellationToken),
402
private static void ValidateEntryLinkName(
TarEntryType
entryType, string? linkName)
404
if (entryType is
TarEntryType
.HardLink or
TarEntryType
.SymbolicLink)
System\Formats\Tar\TarWriter.Unix.cs (14)
28
TarEntryType
entryType = (status.Mode & (uint)Interop.Sys.FileTypes.S_IFMT) switch
32
Interop.Sys.FileTypes.S_IFBLK =>
TarEntryType
.BlockDevice,
33
Interop.Sys.FileTypes.S_IFCHR =>
TarEntryType
.CharacterDevice,
34
Interop.Sys.FileTypes.S_IFIFO =>
TarEntryType
.Fifo,
35
Interop.Sys.FileTypes.S_IFLNK =>
TarEntryType
.SymbolicLink,
36
Interop.Sys.FileTypes.S_IFREG => Format is TarEntryFormat.V7 ?
TarEntryType
.V7RegularFile :
TarEntryType
.RegularFile,
37
Interop.Sys.FileTypes.S_IFDIR =>
TarEntryType
.Directory,
41
FileSystemInfo info = entryType is
TarEntryType
.Directory ? new DirectoryInfo(fullPath) : new FileInfo(fullPath);
52
if (entryType is
TarEntryType
.BlockDevice or
TarEntryType
.CharacterDevice)
95
if (entry.EntryType ==
TarEntryType
.SymbolicLink)
100
if (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>
32
public UstarTarEntry(
TarEntryType
entryType, string entryName)
58
internal 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>
27
public V7TarEntry(
TarEntryType
entryType, string entryName)
44
internal override bool IsDataStreamSetterSupported() => EntryType ==
TarEntryType
.V7RegularFile;