You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a local NAS in my environment. QNAP makes it. I store files on the NAS. By QNAP default, the files are only copied to my local machine when a program expects to open it. The module uses the file hash of course.
Using the Get-DuplicateItem module, an error was trapped. The function stopped.
PS D:\Documents>get-duplicateitem-Path .\Finance\
Get-FileHash: C:\Users\myname\Documents\PowerShell\Modules\get-duplicateitem\1.2.0\public\Get-DuplicateItem.ps1:122
Line |122| … $md5= (Get-FileHash-LiteralPath $_.FullName-Algorithm MD5).Has …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Access to the cloud file is denied. : 'D:\Documents\Finance\2016-chase-freedom-year-end.pdf'Get-DuplicateItem: Exception calling "ContainsKey" with "1" argument(s): "Value cannot be null. (Parameter 'key')"
I suppose I could add an erroraction preference to silentlycontinue, but perhaps there is a better way.
The text was updated successfully, but these errors were encountered:
I have a local NAS in my environment. QNAP makes it. I store files on the NAS. By QNAP default, the files are only copied to my local machine when a program expects to open it. The module uses the file hash of course.
Using the Get-DuplicateItem module, an error was trapped. The function stopped.
I suppose I could add an erroraction preference to silentlycontinue, but perhaps there is a better way.
The text was updated successfully, but these errors were encountered: