dfinke / InstallModuleFromGitHub

Install PowerShell Modules from GitHub
Apache License 2.0
87 stars 31 forks source link

Failing to copy over mulitple folders inside of PSModule #7

Open montereyharris opened 7 years ago

montereyharris commented 7 years ago

If there are multiple folders it seems that it fails to copy over with this error

writeErrorStream : True PSMessageDetails : Exception : System.Management.Automation.PSArgumentException: Container cannot be copied onto existing leaf item. TargetObject : C:\Users\mharris\AppData\Local\Temp\omsagent-master\views CategoryInfo : InvalidArgument: (C:\Users\mharri...nt-master\views:String) [Copy-Item], PSArgumentException FullyQualifiedErrorId : CopyContainerItemToLeafError,Microsoft.PowerShell.Commands.CopyItemCommand ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at Install-ModuleFromGitHub, C:\Program Files\WindowsPowerShell\Modules\InstallModuleFromGitHub\1.1\InstallModuleFromGitHub.psm1: line 70 PipelineIterationInfo : {0, 1}

Tom1White commented 4 years ago

I also have this exact same issue in 1.2.

Copy-Item : Container cannot be copied onto existing leaf item. At C:\Users\wtom\Documents\WindowsPowerShell\Modules\InstallModuleFromGitHub\1.2\InstallModuleFromGitHub.psm1:70 char:25