Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to CloudFile is denied #27

Open
lboening opened this issue Jun 7, 2024 · 0 comments
Open

Access to CloudFile is denied #27

lboening opened this issue Jun 7, 2024 · 0 comments

Comments

@lboening
Copy link

lboening commented Jun 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant