public string LocalToRemote(string localPath, bool isFolder)
{
string normalizedLocalPath = RemoveLocalPrefix(localPath);
Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters.Add("localPath", normalizedLocalPath);
string table = isFolder ? "folders" : "files";
string remotePath = (string)ExecuteSQLFunction("SELECT path FROM " + table + " WHERE localPath=@localPath", parameters);
if (string.IsNullOrEmpty(remotePath))
{
return PathRepresentationConverter.LocalToRemote(localPath);
}
return remotePath;
}