Skip to content

Bug at folder watch / if a file is removed? #3

@gregor-hh

Description

@gregor-hh

Hello,
First of all, thank you very much for the great modules. Fantastic work!

I think I have run into a problem. Observed on two different computers.

Computer A: Windows 10
Computer B: Windows Server 2022

The following error message appears if you do a "watch" on a folder and delete a file in this folder in the meantime:
(The system cannot the file (which was deleted for testing)

image

Compare-Object : Ausnahme beim Abrufen von "Target": "Das System kann die angegebene Datei nicht finden"
In C:\Users\XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\Dokumente\WindowsPowerShell\Modules\Watch\1.0.30\Public\Watch-Command.ps1:154 Zeichen:21

  •         $Diff = Compare-Object @CompareParams -PassThru
    
  •                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidResult: (VMware-tools-12.3.0-22234872-x86_64.exe:PSObject) [Compare-Object], GetValueInvocationException
    • FullyQualifiedErrorId : ExpressionEvaluation,Microsoft.PowerShell.Commands.CompareObjectCommand

Compare-Object : Ausnahme beim Abrufen von "LinkType": "Das System kann die angegebene Datei nicht finden"
In C:\Users\XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\Dokumente\WindowsPowerShell\Modules\Watch\1.0.30\Public\Watch-Command.ps1:154 Zeichen:21

  •         $Diff = Compare-Object @CompareParams -PassThru
    
  •                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidResult: (VMware-tools-12.3.0-22234872-x86_64.exe:PSObject) [Compare-Object], GetValueInvocationException
    • FullyQualifiedErrorId : ExpressionEvaluation,Microsoft.PowerShell.Commands.CompareObjectCommand

Any ideas?

Thank you in advance
gregor

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions