1 write to FullName
System.IO.Compression (1)
System\IO\Compression\ZipArchiveEntry.cs (1)
191FullName = entryName;
87 references to FullName
aspire (11)
Agents\AspireSkills\AspireSkillsBundleProvider.cs (4)
532if (string.IsNullOrWhiteSpace(entry.FullName)) 537var destinationPath = GetSafeArchiveDestinationPath(destinationRoot, entry.FullName); 538if (entry.FullName.EndsWith("/", StringComparison.Ordinal) || entry.FullName.EndsWith("\\", StringComparison.Ordinal))
Packaging\PackageChannel.cs (2)
449var nuspecEntry = archive.Entries.FirstOrDefault(entry => entry.FullName.EndsWith(".nuspec", StringComparison.OrdinalIgnoreCase)); 754var nuspecEntry = archive.Entries.FirstOrDefault(entry => entry.FullName.EndsWith(".nuspec", StringComparison.OrdinalIgnoreCase));
Utils\ArchiveHelper.cs (5)
43if (string.IsNullOrEmpty(entry.FullName)) 48var fullPath = Path.GetFullPath(Path.Combine(destinationPath, entry.FullName)); 52throw new InvalidOperationException($"Zip entry '{entry.FullName}' would extract outside the destination directory."); 55if (entry.FullName.EndsWith('/') || entry.FullName.EndsWith('\\'))
Aspire.Cli.Tests (12)
Commands\ExportCommandTests.cs (11)
69var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 288var entryNames = archive.Entries.Select(e => e.FullName).Order().ToList(); 350var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 468var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 526var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 586var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 636var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 678var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 722var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 797var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList(); 844var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(n => n).ToList();
ProfileCaptureServiceTests.cs (1)
341Assert.Equal("traces/profile.json", entry.FullName);
Aspire.Dashboard.Tests (11)
Model\TelemetryExportServiceTests.cs (11)
708var entryNames = archive.Entries.Select(e => e.FullName).OrderBy(e => e).ToList(); 720var resource1LogsEntry = archive.Entries.First(e => e.FullName.Contains("structuredlogs") && e.FullName.Contains("resource1")); 728var resource2TracesEntry = archive.Entries.First(e => e.FullName.Contains("traces") && e.FullName.Contains("resource2")); 736var resource3MetricsEntry = archive.Entries.First(e => e.FullName.Contains("metrics") && e.FullName.Contains("resource3")); 780var entryNames = archive.Entries.Select(e => e.FullName).Order().ToList(); 827Assert.Equal("structuredlogs/LargeService.json", logEntry.FullName); 878Assert.Equal("traces/LargeService.json", traceEntry.FullName); 939var entryNames = archive.Entries.Select(e => e.FullName).Order().ToList();
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
2139entry => string.Equals(entry.FullName, "META-INF/MANIFEST.MF", StringComparison.OrdinalIgnoreCase));
Aspire.Hosting.Tests (10)
MSBuildTests.cs (10)
271var nuspecEntry = archive.Entries.Single(entry => entry.FullName.EndsWith(".nuspec", StringComparison.Ordinal)); 1368Assert.Contains(archive.Entries, entry => entry.FullName == "analyzers/dotnet/cs/Aspire.Hosting.Integration.Analyzers.dll"); 1369Assert.Contains(archive.Entries, entry => entry.FullName == "README.md"); 1370Assert.DoesNotContain(archive.Entries, entry => entry.FullName.StartsWith("lib/", StringComparison.Ordinal)); 1372var nuspecEntry = archive.Entries.Single(entry => entry.FullName.EndsWith(".nuspec", StringComparison.Ordinal)); 1397entry => entry.FullName.StartsWith("lib/", StringComparison.Ordinal) 1399var targetFramework = assemblyEntry.FullName.Split('/')[1]; 1403entry => entry.FullName == $"buildTransitive/{targetFramework}/Aspire.Hosting.Blazor.targets"); 1409entry => entry.FullName == $"buildTransitive/{targetFramework}/Scripts/{scriptName}"); 1412entry => entry.FullName == $"lib/{targetFramework}/Scripts/{scriptName}");
Microsoft.Arcade.Common (2)
ZipArchiveManager.cs (2)
38zip.Entries.FirstOrDefault(e => e.FullName == entryName)?.Delete(); 53archive.Entries.FirstOrDefault(e => e.FullName == targetFilename)?.Delete();
Microsoft.Build (1)
Logging\BinaryLogger\Postprocessing\ArchiveFile.cs (1)
75return new ArchiveStream(entry.FullName, new StreamReader(entry.Open()));
Microsoft.Build.Tasks.Core (9)
Unzip.cs (9)
185Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFilter", zipArchiveEntry.FullName); 189AbsolutePath fullDestinationPath = TaskEnvironment.GetAbsolutePath(Path.Combine(destinationDirectory.FullName, zipArchiveEntry.FullName)).GetCanonicalForm(); 213Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFileMatch", zipArchiveEntry.FullName, destinationPath.FullName, nameof(SkipUnchangedFiles), "true"); 218Log.LogErrorFromResources("Unzip.FileComment", zipArchiveEntry.FullName, destinationPath.FullName); 241Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.FullName, destinationPath.FullName, e.Message, lockedFileMessage); 248Log.LogMessageFromResources(MessageImportance.Normal, "Unzip.FileComment", zipArchiveEntry.FullName, destinationPath.FullName); 291Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.FullName, destinationPath.FullName, e.Message); 307result = _includePatterns.All(pattern => !FileMatcher.IsMatch(FileMatcher.Normalize(zipArchiveEntry.FullName), pattern)); 312result |= _excludePatterns.Any(pattern => FileMatcher.IsMatch(FileMatcher.Normalize(zipArchiveEntry.FullName), pattern));
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
221archive.Entries.FirstOrDefault(e => e.FullName == NuGetUtils.SignaturePartUri)?.Delete();
Microsoft.ML.Core (1)
Data\Repository.cs (1)
476var path = NormalizeForArchiveEntry(entry.FullName);
Microsoft.ML.Ensemble (4)
EntryPoints\CreateEnsemble.cs (4)
334var entries = zip.Entries.OrderBy(e => e.FullName).ToArray(); 339dataZipEntryNames[i] = entries[i].FullName; 382var entries = zip.Entries.OrderBy(e => e.FullName).ToArray(); 387ch.Check(dataZipEntryNames[i] == entries[i].FullName, errorMsg);
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
64var versionPath = archive.Entries.First(x => x.FullName == versionFileName);
Microsoft.TemplateEngine.Edge (1)
Mount\Archive\ZipFileMountPoint.cs (1)
50string[] parts = entry.FullName.Split('/', '\\');
NuGet.Common (1)
PathUtil\PathUtility.cs (1)
435Uri.UnescapeDataString(z.FullName),
NuGet.Packaging (3)
PackageArchiveReader.cs (1)
298var packageFileName = entry.FullName;
PackageExtraction\ZipArchiveExtensions.cs (2)
22var entry = zipArchive.Entries.FirstOrDefault(zipEntry => UnescapePath(zipEntry.FullName) == path); 33return zipArchive.Entries.Select(e => UnescapePath(e.FullName));
sdk-tasks (3)
ExtractArchiveToDirectory.cs (3)
91if (ShouldExtractItem(entry.FullName)) 93string destinationPath = Path.GetFullPath(Path.Combine(DestinationDirectory, entry.FullName)); 99Log.LogMessage(Path.GetDirectoryName(entry.FullName));
System.IO.Compression (6)
System\IO\Compression\ZipArchive.cs (2)
524_entriesDictionary.TryAdd(entry.FullName, entry); 541_entriesDictionary.Remove(entry.FullName);
System\IO\Compression\ZipArchiveEntry.cs (4)
324ArgumentNullException.ThrowIfNull(value, nameof(FullName)); 345/// Returns the relative path of the entry in the Zip archive, equivalent to <see cref="FullName"/>. 347public override string ToString() => FullName; 405public string Name => ParseFileName(FullName, _versionMadeByPlatform);
System.IO.Compression.ZipFile (1)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
193string sanitizedEntryPath = ArchivingUtils.SanitizeEntryFilePath(source.FullName);
System.IO.Packaging (8)
System\IO\Packaging\ZipPackage.cs (7)
192if (IsZipItemValidOpcPartOrPiece(zipArchiveEntry.FullName)) 214Uri partUri = new Uri(GetOpcNameFromZipItemName(zipArchiveEntry.FullName), UriKind.Relative); 231_ignoredItemHelper.AddItemForAtomicPart(validatedPartUri, zipArchiveEntry.FullName); 1054if (zipFileInfo.FullName.StartsWith(ContentTypesFileUpperInvariant, StringComparison.OrdinalIgnoreCase)) 1057if (zipFileInfo.FullName.Length == ContentTypeFileName.Length) 1396AddItem(pieceInfo.PartUri, pieceInfo.NormalizedPrefixName, pieceInfo.ZipArchiveEntry.FullName); 1420zipFileInfoNameList.Add(pieces[i].ZipArchiveEntry.FullName);
System\IO\Packaging\ZipPackagePartPiece.cs (1)
31bool success = TryParseName(zipArchiveEntry.FullName, out PackUriHelper.ValidatedPartUri? partUri, out string? prefixName, out int pieceNumber, out bool isLastPiece);