Differences

This shows you the differences between the selected revisions of the page.

2016-01-26 2016-02-23
typo (martin) System.BitConverter (martin)
Line 36: Line 36:
            {             {
                $stream = [System.IO.File]::OpenRead($localPath)                 $stream = [System.IO.File]::OpenRead($localPath)
-                $checksum = [BitConverter]::ToString($sha1.ComputeHash($stream))+                $checksum = [System.BitConverter]::ToString($sha1.ComputeHash($stream))
                $stream.Dispose()                 $stream.Dispose()
                               
Line 52: Line 52:
        {         {
            Write-Host ("Request checksum for file {0}..." -f $remotePath)             Write-Host ("Request checksum for file {0}..." -f $remotePath)
-            $checksum = [BitConverter]::ToString($session.CalculateFileChecksum($remoteChecksumAlg, $remotePath))+            $checksum = [System.BitConverter]::ToString($session.CalculateFileChecksum($remoteChecksumAlg, $remotePath))
            Write-Host ("File {0} checksum is {1}" -f $remotePath, $checksum)             Write-Host ("File {0} checksum is {1}" -f $remotePath, $checksum)
        }         }

Last modified: by martin