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