Differences
This shows you the differences between the selected revisions of the page.
| library_session_calculatefilechecksum 2015-01-13 | library_session_calculatefilechecksum 2026-09-01 (current) | ||
| Line 1: | Line 1: | ||
| ====== Session.CalculateFileChecksum Method ====== | ====== Session.CalculateFileChecksum Method ====== | ||
| - | Calculates a checksum of a remote file. &beta_feature | + | Calculates a checksum of a remote file. |
| ===== Syntax ===== | ===== Syntax ===== | ||
| Line 8: | Line 8: | ||
| <code vbnet *> | <code vbnet *> | ||
| - | Public Function CalculateFileChecksum(ByVal algorithm As String, ByVal path As String) As Byte() | + | Public Function CalculateFileChecksum(algorithm As String, path As String) As Byte() |
| </code> | </code> | ||
| ==== Parameters ==== | ==== Parameters ==== | ||
| ^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
| - | | string algorithm | A name of a checksum algorithm to use. \\ Use [[http://www.iana.org/assignments/hash-function-text-names/hash-function-text-names.xhtml|IANA name of algorithm]] or use a name of any proprietary algorithm the server supports (with SFTP protocol only). \\ Commonly supported algorithms are ''sha-1'' and ''md5''. | | + | | string algorithm | A name of a checksum algorithm to use. \\ Use [[https://www.iana.org/assignments/hash-function-text-names|IANA name of algorithm]] or use a name of any proprietary algorithm the server supports (with SFTP protocol only). \\ Commonly supported algorithms are ''sha-1'' and ''md5''. | |
| | string path | A full path to a remote file to calculate a checksum for. | | | string path | A full path to a remote file to calculate a checksum for. | | ||
| Line 26: | Line 26: | ||
| | TimeoutException | Timeout waiting for ''winscp.com'' to respond. | | | TimeoutException | Timeout waiting for ''winscp.com'' to respond. | | ||
| - | ===== Remarks ===== | + | ===== [[remarks]] Remarks ===== |
| Supported with [[sftp|SFTP]] and [[ftp|FTP]] protocols, subject to support of [[protocols|respective protocol extension]]. | Supported with [[sftp|SFTP]] and [[ftp|FTP]] protocols, subject to support of [[protocols|respective protocol extension]]. | ||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | ==== Real-Life Examples ==== | ||
| + | |||
| + | * [[library_example_verify_file_checksum|*]]; | ||
| + | * [[library_example_find_duplicate_files|*]]. | ||
| + | |||
| + | |||