2 writes to LinkName
System.Formats.Tar (2)
System\Formats\Tar\TarWriter.Unix.cs (2)
119entry.LinkName = info.LinkTarget ?? string.Empty; 125entry.LinkName = hardLinkTarget;
15 references to LinkName
aspire (8)
Bundles\BundleService.cs (4)
289if (string.IsNullOrEmpty(entry.LinkName)) 294var linkTarget = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(fullPath)!, entry.LinkName)); 298throw new InvalidOperationException($"Symlink '{entry.Name}' targets '{entry.LinkName}' which resolves outside the destination directory."); 309File.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);
Microsoft.DotNet.SignTool (1)
src\ZipData.cs (1)
683File.CreateSymbolicLink(outputPath, tar.LinkName);
System.Formats.Tar (6)
System\Formats\Tar\PaxTarEntry.cs (1)
117/// <para>Setting properties such as <see cref="TarEntry.Name"/>, <see cref="TarEntry.ModificationTime"/>, <see cref="TarEntry.Uid"/>, <see cref="TarEntry.Gid"/>, <see cref="PosixTarEntry.UserName"/>, <see cref="PosixTarEntry.GroupName"/>, <see cref="TarEntry.LinkName"/>, <see cref="PosixTarEntry.DeviceMajor"/>, or <see cref="PosixTarEntry.DeviceMinor"/> will update the corresponding extended attribute to keep properties and extended attributes synchronized.</para>
System\Formats\Tar\TarEntry.cs (2)
379string linkName = ArchivingUtils.SanitizeEntryFilePath(LinkName, preserveDriveRoot: true); 394string 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)
250/// <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> 298/// <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>