<PackageReference Include="Relativity.Transfer.Client" Version="7.0.11" />

UncPathToDocRootConverter

public static class UncPathToDocRootConverter
using System; namespace Relativity.Transfer { public static class UncPathToDocRootConverter { public static string Convert(string uncPath) { if (uncPath == null) throw new ArgumentException("UNC path cannot be null."); if (uncPath.Trim().Length == 0) throw new ArgumentException("Empty string is not a valid UNC path."); string text = uncPath.Replace('\\', '/'); int num = text.LastIndexOf("Files"); if (num < 0) throw new ArgumentException("UNC path '" + uncPath + "' does not contain 'Files' part."); return text.Remove(num); } } }