public async Task <string> GetCheckSumAsync(string path, string fileName, FtpHashAlgorithm algorithm) { try { string result = string.Empty; FtpHash remoteHash = await _ftpClient.GetChecksumAsync(path + fileName); if (remoteHash.IsValid) { result = remoteHash.Value; } return(result); } catch (Exception ex) { throw ex; } }