/// <summary></summary>
/// <param name="remotePath"></param>
/// <param name="repoInfo"></param>
public RemotePathSyncItem(string remotePath, RepoInfo repoInfo)
{
this.localRoot = repoInfo.TargetDirectory;
this.remoteRoot = PathRepresentationConverter.LocalToRemote(repoInfo.RemotePath);
this.remotePath = remotePath;
if (remotePath.StartsWith(this.remoteRoot))
{
this.remotePath = remotePath.Substring(this.remoteRoot.Length).TrimStart(CmisUtils.CMIS_FILE_SEPARATOR);
}
this.localPath = PathRepresentationConverter.RemoteToLocal(this.remotePath);
}