48 references to EntryType
aspire (2)
Bundles\BundleService.cs (1)
919
switch (entry.
EntryType
)
Utils\ArchiveHelper.cs (1)
95
switch (entry.
EntryType
)
Aspire.Cli.EndToEnd.Tests (1)
Helpers\CliE2ETestHelpers.cs (1)
1174
if (entry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Aspire.Hosting (1)
Publishing\ContainerImageArchiveRewriter.cs (1)
502
if (entry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Aspire.Hosting.TestUtilities (1)
Publishing\TestContainerImageArchive.cs (1)
133
if (layerEntry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Infrastructure.Tests (3)
Pipelines\TrayBundleTests.cs (3)
75
if (entry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
181
if (entry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
288
if (entry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Microsoft.Build.Tasks.Core (3)
Untar.cs (3)
302
if (tarEntry.
EntryType
is TarEntryType.Directory || Path.GetFileName(destinationPath.FullName).Length == 0)
320
if (tarEntry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
322
Log.LogMessageFromResources(MessageImportance.Low, "Untar.DidNotUntarBecauseOfEntryType", entryName, tarEntry.
EntryType
.ToString());
sdk-tasks (1)
ExtractArchiveToDirectory.cs (1)
122
if (tarEntry.
EntryType
!= TarEntryType.Directory)
System.Formats.Tar (36)
System\Formats\Tar\GnuTarEntry.cs (1)
100
internal override bool IsDataStreamSetterSupported() =>
EntryType
is TarEntryType.RegularFile;
System\Formats\Tar\PaxTarEntry.cs (1)
132
internal override bool IsDataStreamSetterSupported() =>
EntryType
== TarEntryType.RegularFile;
System\Formats\Tar\TarEntry.cs (24)
61
TarEntryType compatibleEntryType = TarHelpers.GetCorrectTypeFlagForFormat(format, other.
EntryType
);
119
/// When the <see cref="
EntryType
"/> indicates an entry that can contain data, this property returns the length in bytes of such data.
125
/// 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.
217
if (
EntryType
is TarEntryType.SymbolicLink or TarEntryType.HardLink or TarEntryType.GlobalExtendedAttributes)
219
throw new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting,
EntryType
));
252
if (
EntryType
is TarEntryType.SymbolicLink or TarEntryType.HardLink or TarEntryType.GlobalExtendedAttributes)
254
return Task.FromException(new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting,
EntryType
)));
261
/// The data section of this entry. If the <see cref="
EntryType
"/> does not support containing data, then returns <see langword="null"/>.
264
/// <para>Sets a new stream that represents the data section, if it makes sense for the <see cref="
EntryType
"/> to contain data; if a stream already existed, the old stream gets disposed before substituting it with the new stream. Setting a <see langword="null"/> stream is allowed.</para></value>
266
/// <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>
276
throw new InvalidOperationException(SR.Format(SR.TarEntryDoesNotSupportDataStream, Name,
EntryType
));
330
Debug.Assert(
EntryType
is TarEntryType.SymbolicLink);
336
if (
EntryType
== TarEntryType.Directory)
362
Debug.Assert(
EntryType
is TarEntryType.SymbolicLink);
368
if (
EntryType
== TarEntryType.Directory)
399
if (
EntryType
is TarEntryType.SymbolicLink)
425
else if (
EntryType
is TarEntryType.HardLink)
609
if (
EntryType
is TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile)
628
if (
EntryType
is TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile)
641
Debug.Assert(
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile));
643
switch (
EntryType
)
697
Debug.Fail($"Metadata entry type should not be visible: '{
EntryType
}'");
705
throw new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting,
EntryType
));
751
Debug.Assert(
EntryType
is TarEntryType.HardLink);
System\Formats\Tar\TarEntry.Unix.cs (3)
26
Debug.Assert(
EntryType
is TarEntryType.BlockDevice);
33
Debug.Assert(
EntryType
is TarEntryType.CharacterDevice);
40
Debug.Assert(
EntryType
is TarEntryType.Fifo);
System\Formats\Tar\TarFile.cs (2)
651
if (entry.
EntryType
is not TarEntryType.GlobalExtendedAttributes)
700
if (entry.
EntryType
is not TarEntryType.GlobalExtendedAttributes)
System\Formats\Tar\TarWriter.Unix.cs (3)
110
if (entry.
EntryType
== TarEntryType.SymbolicLink)
115
if (entry.
EntryType
== TarEntryType.HardLink)
121
if (entry.
EntryType
is TarEntryType.RegularFile or TarEntryType.V7RegularFile)
System\Formats\Tar\UstarTarEntry.cs (1)
58
internal override bool IsDataStreamSetterSupported() =>
EntryType
== TarEntryType.RegularFile;
System\Formats\Tar\V7TarEntry.cs (1)
44
internal override bool IsDataStreamSetterSupported() =>
EntryType
== TarEntryType.V7RegularFile;