mirror of https://github.com/raandree/NTFSSecurity
Browse Source
Found while fixing defect 3, in the same loop: the hash variable lived outside the loop, and after a GetHashError the cmdlet still wrote a result for the file, with the hash of the previous file. Each path now starts without a hash, and a failed read writes only the error. Tests/FileHash.Tests.ps1: 1 test with a file opened without sharing; like the other Get-FileHash2 tests, it skips in PowerShell 7 until the RIPEMD160 reference goes (decision D5). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: AI Assistant <ai@example.com>pull/102/head
5 changed files with 31 additions and 7 deletions
Loading…
Reference in new issue