63 references to RegularFile
aspire (4)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (1)
500case TarEntryType.RegularFile:
Agents\Hooks\AgentTelemetryCatalog.cs (1)
120entry.EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Bundles\BundleService.cs (1)
925case TarEntryType.RegularFile:
Utils\ArchiveHelper.cs (1)
101case TarEntryType.RegularFile:
Aspire.Cli.Tests (9)
Agents\AgentTelemetryCatalogTests.cs (1)
167writer.WriteEntry(new PaxTarEntry(TarEntryType.RegularFile, path) { DataStream = data });
BundleServiceIntegrationTests.cs (8)
695var managedEntry = new PaxTarEntry(TarEntryType.RegularFile, $"aspire-payload/{BundleDiscovery.ManagedDirectoryName}/{exeName}") 704tar.WriteEntry(new PaxTarEntry(TarEntryType.RegularFile, $"aspire-payload/terminalhost/{file}") 713TarEntryType.RegularFile, 721TarEntryType.RegularFile, 731TarEntryType.RegularFile, 740TarEntryType.RegularFile, 752TarEntryType.RegularFile, 762var trayEntry = new PaxTarEntry(TarEntryType.RegularFile, $"aspire-payload/{TrayExecutablePath}")
Aspire.Hosting (1)
Publishing\ContainerImageArchiveRewriter.cs (1)
502if (entry.EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Aspire.Hosting.TestUtilities (3)
Publishing\TestContainerImageArchive.cs (3)
133if (layerEntry.EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile)) 177var layerEntry = new PaxTarEntry(TarEntryType.RegularFile, "layer.tar") 224var entry = new PaxTarEntry(TarEntryType.RegularFile, name)
CreateLayout (1)
Program.cs (1)
391var entry = new System.Formats.Tar.PaxTarEntry(System.Formats.Tar.TarEntryType.RegularFile, relativePath)
Infrastructure.Tests (2)
Pipelines\TrayBundleTests.cs (2)
106if (entry.EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile)) 294if (entry.EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Microsoft.Build.Tasks.Core (2)
TarDirectory.cs (1)
484_ => TarEntryType.RegularFile,
Untar.cs (1)
315if (tarEntry.EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile))
Microsoft.NET.Build.Containers (15)
Layer.cs (1)
185entry = new(TarEntryType.RegularFile, containerPath, entryAttributes)
LocalDaemons\ContainerArchive.cs (7)
141PaxTarEntry configEntry = new(TarEntryType.RegularFile, configPath) 175PaxTarEntry manifestEntry = new(TarEntryType.RegularFile, "manifest.json") 190PaxTarEntry layoutEntry = new(TarEntryType.RegularFile, "oci-layout") 206PaxTarEntry manifestEntry = new(TarEntryType.RegularFile, manifestPath) 237PaxTarEntry indexEntry = new(TarEntryType.RegularFile, "index.json") 278PaxTarEntry manifestListEntry = new(TarEntryType.RegularFile, $"{BlobsPath}/{manifestListSha}") 297PaxTarEntry indexEntry = new(TarEntryType.RegularFile, "index.json")
LocalDaemons\DockerCli.cs (7)
370PaxTarEntry configEntry = new(TarEntryType.RegularFile, configPath) 401PaxTarEntry manifestEntry = new(TarEntryType.RegularFile, "manifest.json") 439PaxTarEntry layoutEntry = new(TarEntryType.RegularFile, ociLayoutPath) 457PaxTarEntry manifestEntry = new(TarEntryType.RegularFile, manifestPath) 482PaxTarEntry indexEntry = new(TarEntryType.RegularFile, "index.json") 545PaxTarEntry indexEntry = new(TarEntryType.RegularFile, manifestListPath) 564PaxTarEntry indexEntry = new(TarEntryType.RegularFile, "index.json")
System.Formats.Tar (26)
System\Formats\Tar\GnuTarEntry.cs (2)
29/// <item>In all platforms: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/>, <see cref="TarEntryType.RegularFile"/>.</item> 100internal override bool IsDataStreamSetterSupported() => EntryType is TarEntryType.RegularFile;
System\Formats\Tar\PaxTarEntry.cs (3)
28/// <item>In all platforms: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/>, <see cref="TarEntryType.RegularFile"/>.</item> 51/// <item>In all platforms: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/>, <see cref="TarEntryType.RegularFile"/>.</item> 132internal override bool IsDataStreamSetterSupported() => EntryType == TarEntryType.RegularFile;
System\Formats\Tar\TarEntry.cs (5)
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> 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> 532if (EntryType is TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile) 551if (EntryType is TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile) 564Debug.Assert(EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile));
System\Formats\Tar\TarEntryType.cs (1)
46/// <para>This entry type is specific to the <see cref="TarEntryFormat.Gnu"/> format, and is treated as a <see cref="RegularFile"/> entry type.</para>
System\Formats\Tar\TarHeader.cs (1)
110internal TarHeader(TarEntryFormat format, string name = "", int mode = 0, DateTimeOffset mTime = default, TarEntryType typeFlag = TarEntryType.RegularFile)
System\Formats\Tar\TarHeader.Read.cs (3)
206if (_typeFlag is TarEntryType.RegularFile or TarEntryType.V7RegularFile) 320case TarEntryType.RegularFile: 482_ => (header._typeFlag == TarEntryType.RegularFile) ? TarEntryFormat.Ustar : TarEntryFormat.V7
System\Formats\Tar\TarHelpers.cs (6)
211internal static TarEntryType GetRegularFileEntryTypeForFormat(TarEntryFormat format) => format is TarEntryFormat.V7 ? TarEntryType.V7RegularFile : TarEntryType.RegularFile; 219(TarEntryFormat.V7, TarEntryType.RegularFile) => TarEntryType.V7RegularFile, 220(not TarEntryFormat.V7, TarEntryType.V7RegularFile) => TarEntryType.RegularFile, 350TarEntryType.RegularFile or 364TarEntryType.RegularFile or 382TarEntryType.RegularFile or
System\Formats\Tar\TarWriter.cs (2)
230/// <item><see cref="TarEntryType.RegularFile"/></item> 278/// <item><see cref="TarEntryType.RegularFile"/></item>
System\Formats\Tar\TarWriter.Unix.cs (1)
121if (entry.EntryType is TarEntryType.RegularFile or TarEntryType.V7RegularFile)
System\Formats\Tar\UstarTarEntry.cs (2)
24/// <item>In all platforms: <see cref="TarEntryType.Directory"/>, <see cref="TarEntryType.HardLink"/>, <see cref="TarEntryType.SymbolicLink"/>, <see cref="TarEntryType.RegularFile"/>.</item> 58internal override bool IsDataStreamSetterSupported() => EntryType == TarEntryType.RegularFile;