<PackageReference Include="Relativity.Server.Transfer.SDK" Version="7.7.0" />

LocalCanonicalFormConverter

using System.IO; using System.Text.RegularExpressions; namespace Relativity.DataTransfer.Nodes.PathConversion { public class LocalCanonicalFormConverter : CanonicalFormConverterBase { protected override string RemoveAdditionalSlashes(string path) { return Path.GetFullPath(path); } protected override string FixSlashes(string path) { string text = path.Replace(PathConstants.UnixDirectorySeparator, PathConstants.DirectorySeparatorAsString); if (!IsLocalDiskWithoutSeparator(text)) return text; return text + PathConstants.DirectorySeparatorAsString; } private static bool IsLocalDiskWithoutSeparator(string path) { return Regex.IsMatch(path, "^[a-zA-Z](:)$"); } } }