Exemple #1
0
        public string GetCheckSum(string path, string fileName, FtpHashAlgorithm algorithm)
        {
            try
            {
                string result = string.Empty;

                FtpHash remoteHash = _ftpClient.GetChecksum(path + fileName);

                if (remoteHash.IsValid)
                {
                    result = remoteHash.Value;
                }

                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }