Skip to content

-Mirror parameter doesn't work properly #7

@nebffa

Description

@nebffa

Hey, this module is really awesome! However, the -Mirror parameter doesn't work correctly for me - it deletes all of the files I want to copy across for some reason. A way to reproduce it is:

  1. Copy a directory without the -Mirror switch
  2. Copy the same directory with the -Mirror and the -WhatIf switches - it will tell you that it's going to delete all the files

EDIT: After a bit more checking:
Not working: Copy-FileHash -Path C:\somePath -Destination C:\someOtherPath
Working: Copy-FileHash -Path C:\somePath\ -Destination C:\someOtherPath\

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions