When executing CompareFileAsync outputs "ChecksumNotSupported" FluentFTP

Viewed 298
FtpCompareResult compareResult = await ftp.CompareFileAsync(@"C:\test\Text.txt", @"/Text.txt");

Why does it output this? I would like to see Equals or NotEquals

1 Answers

According to the source code of the method ChecksumNotSupported is returned if your FTP server does not support the following algorithms:

private bool SupportsChecksum() {
    return HasFeature(FtpCapability.HASH) || HasFeature(FtpCapability.MD5) ||
            HasFeature(FtpCapability.XMD5) || HasFeature(FtpCapability.XCRC) ||
            HasFeature(FtpCapability.XSHA1) || HasFeature(FtpCapability.XSHA256) ||
            HasFeature(FtpCapability.XSHA512);
}

or if the result of GetChecksum was invalid.

So you should configure the server properly.

Related