public string GetChecksum(string path)
{
string localRelativePath = RemoveLocalPrefix(path);
int length = localRelativePath.Length;
string command = "SELECT checksum FROM files WHERE localPath=@localPath";
Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters.Add("localPath", localRelativePath);
string res = (string)ExecuteSQLFunction(command, parameters);
if(string.IsNullOrEmpty(res))
{
Logger.Debug("GetCheckSum returns null for path=" + path + ", localRelativePath=" + localRelativePath);
}
return res;
}