public PathMatcher(string localTargetRootPath, string remoteTargetRootPath)
{
if (string.IsNullOrEmpty(localTargetRootPath)) {
throw new ArgumentException("Given local path is null or empty");
}
if (string.IsNullOrEmpty(remoteTargetRootPath)) {
throw new ArgumentException("Given remote path is null or empty");
}
if (!localTargetRootPath.EndsWith(Path.DirectorySeparatorChar.ToString())) {
localTargetRootPath += Path.DirectorySeparatorChar.ToString();
}
if (!remoteTargetRootPath.EndsWith("/")) {
remoteTargetRootPath += "/";
}
this.LocalTargetRootPath = localTargetRootPath;
this.RemoteTargetRootPath = remoteTargetRootPath;
}