We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cd /tmp mkdir a mkdir A touch a/b cd A Copy-Item ../a/b
File copied.
File not copied, and error:
Copy-Item : Cannot overwrite the item /tmp/A/b with itself. At line:1 char:1 + Copy-Item ../a/b + ~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (/tmp/A/b:String) [Copy-Item], IOException + FullyQualifiedErrorId : CopyError,Microsoft.PowerShell.Commands.CopyItemCommand
Name Value ---- ----- PSVersion 6.0.0-alpha PSEdition Core PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 3.0.0.0 GitCommitId v6.0.0-alpha.9 CLRVersion WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Steps to reproduce
Expected behavior
File copied.
Actual behavior
File not copied, and error:
Environment data