1 write to LinkName
System.Formats.Tar (1)
System\Formats\Tar\TarWriter.Unix.cs (1)
97entry.LinkName = info.LinkTarget ?? string.Empty;
13 references to LinkName
aspire (8)
Bundles\BundleService.cs (4)
292if (string.IsNullOrEmpty(entry.LinkName)) 297var linkTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(fullPath)!, entry.LinkName)); 301throw new InvalidOperationException($"Symlink '{entry.Name}' targets '{entry.LinkName}' which resolves outside the destination directory."); 312File.CreateSymbolicLink(fullPath, entry.LinkName);
Utils\ArchiveHelper.cs (4)
117if (string.IsNullOrEmpty(entry.LinkName)) 122var linkTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(fullPath)!, entry.LinkName)); 126throw new InvalidOperationException($"Symlink '{entry.Name}' targets '{entry.LinkName}' which resolves outside the destination directory."); 137File.CreateSymbolicLink(fullPath, entry.LinkName);
System.Formats.Tar (5)
System\Formats\Tar\TarEntry.cs (2)
364string linkName = ArchivingUtils.SanitizeEntryFilePath(LinkName, preserveDriveRoot: true); 379string linkName = ArchivingUtils.SanitizeEntryFilePath(LinkName, preserveDriveRoot: false);
System\Formats\Tar\TarHeader.Write.cs (1)
686throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.LinkName)), ArgNameEntry);
System\Formats\Tar\TarWriter.cs (2)
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> 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>