47 references to EntryType
aspire (5)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (2)
494
switch (entry.
EntryType
)
516
throw new InvalidDataException(string.Format(CultureInfo.InvariantCulture, "Aspire skills archive entry '{0}' has unsupported type '{1}'.", entry.Name, entry.
EntryType
));
Agents\Hooks\AgentTelemetryCatalog.cs (1)
120
entry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Bundles\BundleService.cs (1)
913
switch (entry.
EntryType
)
Utils\ArchiveHelper.cs (1)
95
switch (entry.
EntryType
)
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 (2)
Pipelines\TrayBundleTests.cs (2)
106
if (entry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
294
if (entry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Microsoft.Build.Tasks.Core (3)
Untar.cs (3)
297
if (tarEntry.
EntryType
is TarEntryType.Directory || Path.GetFileName(destinationPath.FullName).Length == 0)
315
if (tarEntry.
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
317
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 (34)
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 (22)
60
TarEntryType compatibleEntryType = TarHelpers.GetCorrectTypeFlagForFormat(format, other.
EntryType
);
118
/// When the <see cref="
EntryType
"/> indicates an entry that can contain data, this property returns the length in bytes of such data.
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.
216
if (
EntryType
is TarEntryType.SymbolicLink or TarEntryType.HardLink or TarEntryType.GlobalExtendedAttributes)
218
throw new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting,
EntryType
));
251
if (
EntryType
is TarEntryType.SymbolicLink or TarEntryType.HardLink or TarEntryType.GlobalExtendedAttributes)
253
return Task.FromException(new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting,
EntryType
)));
260
/// The data section of this entry. If the <see cref="
EntryType
"/> does not support containing data, then returns <see langword="null"/>.
263
/// <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>
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>
275
throw new InvalidOperationException(SR.Format(SR.TarEntryDoesNotSupportDataStream, Name,
EntryType
));
326
if (
EntryType
== TarEntryType.Directory)
349
if (
EntryType
== TarEntryType.Directory)
379
if (
EntryType
is TarEntryType.SymbolicLink)
401
else if (
EntryType
is TarEntryType.HardLink)
532
if (
EntryType
is TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile)
551
if (
EntryType
is TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile)
564
Debug.Assert(
EntryType
is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile));
566
switch (
EntryType
)
620
Debug.Fail($"Metadata entry type should not be visible: '{
EntryType
}'");
628
throw new InvalidOperationException(SR.Format(SR.TarEntryTypeNotSupportedForExtracting,
EntryType
));
665
Debug.Assert(
EntryType
is TarEntryType.HardLink);
System\Formats\Tar\TarEntry.Unix.cs (3)
16
Debug.Assert(
EntryType
is TarEntryType.BlockDevice);
23
Debug.Assert(
EntryType
is TarEntryType.CharacterDevice);
30
Debug.Assert(
EntryType
is TarEntryType.Fifo);
System\Formats\Tar\TarFile.cs (2)
642
if (entry.
EntryType
is not TarEntryType.GlobalExtendedAttributes)
690
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;