0 votes
by (160 points)

I have used following to upload file, to check Checksum and compare local and remote files data

sftp.PutFile(fileStream, remotePath);

var checksumAlgorithm = ChecksumAlgorithm.SHA256;
string remoteChecksum =sftp.GetChecksum(remotePath, checksumAlgorithm);
string localChecksum = LocalItem.GetChecksum(file.FullName, checksumAlgorithm);

But I am getting below exception

The file path does not exist or is invalid.

at Rebex.Net.Sftp.unzfy(jipzm p0, String[] p1, Int64 p2, Int64 p3, Int32 p4, Boolean p5, vqtuw p6)

at Rebex.Net.Sftp.atdei(jipzm p0, String[] p1, Int64 p2, Int64 p3, Int32 p4)

at R

Applies to: Rebex SFTP

1 Answer

0 votes
by (147k points)
We need more information about the exception to be able to tell what is going on.
Please create a debug log as described at https://www.rebex.net/kb/logging/ and post the relevant part with the error and relevant requests/responses.
...