RemoteCanonicalFormConverter
namespace Relativity.DataTransfer.Nodes.PathConversion
{
public class RemoteCanonicalFormConverter : CanonicalFormConverterBase
{
protected override string RemoveAdditionalSlashes(string path)
{
string text = path;
while (text.Contains(PathConstants.UncPathShortPrefix)) {
text = text.Replace(PathConstants.UncPathShortPrefix, PathConstants.DirectorySeparatorAsString);
}
return text;
}
protected override string FixSlashes(string path)
{
return path.Replace(PathConstants.UnixDirectorySeparator, PathConstants.DirectorySeparatorAsString);
}
}
}