Forum Discussion
warfery
May 23, 2025Copper Contributor
Copy-Item -Recurse bug
We are copying files using the Copy-Item cmdlet from a local disk to a remote disk. The source folder contains around 900 files in numerous subdirectories.
Copy-Item -Path "build\image\*" -Destination $output_path -Recurse -Verbose
Get-Command Copy-Item | Select-Object Name, Version
Name Version
---- -------
Copy-Item 3.1.0.0
3 Replies
Sort By
Any update?
Any difference with and without the * ?
- warferyCopper Contributor
We needed fix asap so we tried robocopy instead of Copy-Item and it works without any problem. I have no capacity to do some research of the bug now.